import { useTranslation } from "react-i18next"; import { supportedLngs } from "./config"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/shadcn/ui/dropdown-menu" import styled from 'styled-components'; const TopNavBarWrapper = styled.div` padding: 20px; gap: 0; display: flex; margin-top: 0px; gap: 30px; * > i { font-size: 27.5px; } ` const countryflagIcons = { en: `img`, ko: `img`, ja: `img`, } export default function LocaleSwitcher() { const { i18n } = useTranslation(); return ( <>
{Object.entries(supportedLngs).map(([code, name]) => ( { i18n.changeLanguage(code)}} > {name} ))}
); }