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