import { TableContainer, Table, TableCaption, Thead, Tr, Th, Tbody, Td, Tfoot, Box, } from '@chakra-ui/react' import { Layout } from '@components/common' import { Text } from '@components/ui' import { useRouter } from 'next/router' import tableData from '../static_data/where-we-are.json' export default function WhereWeAre() { const { locale = 'it' } = useRouter() return (
{locale == 'it' ? 'Dove Siamo' : 'Where We Are'} {tableData[locale as keyof typeof tableData].map((elem, index) => { return ( {index === 0 ? ( ) : ( <> )} ) })}
{locale == 'it' ? 'Giorno' : 'Day of Week'} {locale == 'it' ? 'Orario' : 'Time'} {locale == 'it' ? 'Luogo' : 'Place'}
{elem.day} {elem.time} {elem.location!.split('
').map((str, index) => (

{str}

))}
) } WhereWeAre.Layout = Layout