import { useTranslations } from 'next-intl' import { SettingsIcon } from '../icons/SettingsIcon' export const SettingsToggle = ({ showSettingsToggle, }: { showSettingsToggle: boolean }) => { const t = useTranslations('Settings') return ( <> {showSettingsToggle ? ( <> {t('Settings')} ) : ( {t('Close')} )} ) }