import React from 'react'; import { Box, Heading, Table, Thead, Tbody, Tr, Th, Button, useDisclosure, Flex, } from '@chakra-ui/react'; import { useTranslation } from 'react-i18next'; import MasterItem from '../MasterItem'; import MasterDrawer from '../MasterDrawer'; import data from '../../../stubs/json/arm-masters/success.json'; const TABLE_HEADERS = [ 'name' as const, 'currentJob' as const, 'phone' as const, 'actions' as const, ]; const Masters = () => { const { isOpen, onOpen, onClose } = useDisclosure(); const { t } = useTranslation('~', { keyPrefix: 'dry-wash.arm.master', }); return ( {t('title')} {TABLE_HEADERS.map((name) => ( ))} {data.body.map((master, index) => ( ))}
{t(`table.header.${name}`)}
); }; export default Masters;