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' ? 'Giorno' : 'Day of Week'} | {locale == 'it' ? 'Orario' : 'Time'} | {locale == 'it' ? 'Luogo' : 'Place'} |
---|---|---|
{elem.day} | {elem.time} | {index === 0 ? (
{elem.location!.split(' ').map((str, index) => ( {str} ))} |
) : (
<>>
)}