import { FC } from "react"; // constants import { CustomSelect } from "@plane/ui"; import { THEME_OPTIONS, I_THEME_OPTION } from "constants/themes"; // 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 > {THEME_OPTIONS.map((themeOption) => (
{themeOption.label}
))} ); };