/* 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 ( <>