import { FC } from "react"; // constants import { THEME_OPTIONS, I_THEME_OPTION } from "constants/themes"; // ui import { CustomSelect } from "@plane/ui"; type Props = { value: I_THEME_OPTION | null; onChange: (value: I_THEME_OPTION) => void; }; export const ThemeSwitch: FC = (props) => { const { value, onChange } = props; return (
{value.label}
) : ( "Select your theme" ) } onChange={onChange} input width="w-full z-20" > {THEME_OPTIONS.map((themeOption) => (
{themeOption.label}
))} ); };