'use client' import { useChangeLocale, useCurrentLocale } from '@/locales/client' import { LC, type loc } from '@/config/locales' import { ChangeEvent } from 'react' import styles from '@/styles/LocaleSwitcher.module.scss' export default function LocaleSwitcher () { const changeLocale = useChangeLocale() const locale = useCurrentLocale() const selectHandler = (e: ChangeEvent) => changeLocale( e.target.value as loc) return ( //@ts-ignore ) }