/* eslint-disable newline-before-return */ import { FC } from 'react'; import { Button, Table } from 'semantic-ui-react'; import useFacility from '../../hooks/Faclitity'; import { AppError, Loading } from '../common'; const Component: FC = () => { const { list, loading, deleteOne, error } = useFacility(); const onClick = (id: string) => { deleteOne({ id, }); }; return ( <> ID Name Status Description Delete {list.map((v) => { return ( {v.id} {v.name} {v.recordingStatus} {v.description} ); })}
); }; export default Component;