import React from 'react'; import { Badge, Stack, Td, Tr, Text } from '@chakra-ui/react'; import { useTranslation } from 'react-i18next'; import MasterActionsMenu from '../MasterActionsMenu'; import { getTimeSlot } from '../../lib'; import EditableWrapper from '../Editable/Editable'; import { armService } from '../../api/arm'; const MasterItem = ({ name, phone, id, schedule }) => { const { updateMaster } = armService(); const { t } = useTranslation('~', { keyPrefix: 'dry-wash.arm.master', }); return (