import React, { lazy } from "react"; import { Popover } from "./Popover"; const TwitterPicker = lazy(() => import( /* webpackPrefetch: true */ "react-color/lib/components/twitter/Twitter" ) ); export function ColorPicker({ color, onChange }: { color: string | null; onChange: (color: string) => void; }) { const [isActive, setActive] = React.useState(false); return (
); }