'use client' import { logout } from '@/lib/authActions' import { useChangeLocale, useI18n } from '@/locales/client' import { Button, Chip } from '@nextui-org/react' export default function MainPage(props) { const { currentLocale, isLoggedIn } = props const t = useI18n() const changeLocale = useChangeLocale() const handleChangeLocale = () => { currentLocale === 'ja' ? changeLocale('ko') : changeLocale('ja') } // console.log('MainPage', currentLocale) const handleLogout = async () => { await logout() } return ( <>