import React, { useState } from "react"; import TextInput from "./TextInput"; import Popover from "./Popover"; import { HexColorPicker } from "react-colorful"; import { useTranslation } from "next-i18next"; import IconGrid from "./IconGrid"; import clsx from "clsx"; type Props = { alignment?: string; color: string; setColor: Function; iconName?: string; setIconName: Function; weight: "light" | "regular" | "bold" | "fill" | "duotone" | "thin"; setWeight: Function; reset: Function; className?: string; onClose: Function; }; const IconPopover = ({ alignment, color, setColor, iconName, setIconName, weight, setWeight, reset, className, onClose, }: Props) => { const { t } = useTranslation(); const [query, setQuery] = useState(""); return ( onClose()} className={clsx( className, "fade-in bg-base-200 border border-neutral-content p-2 w-[22.5rem] rounded-lg shadow-md" )} >
setQuery(e.target.value)} />
setColor(e)} />
} > {t("reset_defaults")}
); }; export default IconPopover;