import React, { useState } from "react"; import TextInput from "./TextInput"; import Popover from "./Popover"; import { HexColorPicker } from "react-colorful"; import { useTranslation } from "next-i18next"; import Icon from "./Icon"; import { IconWeight } from "@phosphor-icons/react"; import IconGrid from "./IconGrid"; import IconPopover from "./IconPopover"; 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; hideDefaultIcon?: boolean; reset: Function; className?: string; }; const IconPicker = ({ alignment, color, setColor, iconName, setIconName, weight, setWeight, hideDefaultIcon, className, reset, }: Props) => { const { t } = useTranslation(); const [iconPicker, setIconPicker] = useState(false); return (
{t("set_custom_icon")}
) : ( )}