import { Fragment } from 'react' import themes from 'shared/themes/index.js' import ThemeIcon from 'shared/components/icons/theme.js' import { useTranslation } from 'next-i18next' import { Popover, Transition } from '@headlessui/react' import DownIcon from 'shared/components/icons/down' const ThemePicker = ({ app, className, iconOnly = false }) => { const { t } = useTranslation(['themes', 'common']) return ( {() => ( <> {!iconOnly && {t(`common:theme`)}}
{Object.keys(themes).map((theme) => ( ))}
)}
) } export default ThemePicker