import { useState } from "react"; import { useServiceData } from "../../Hooks/Services"; import AddService from "./AddService"; import ServiceTable from "./ServiceTable"; //@ts-ignore import addicon from "../../assets/addiconpng.png"; import { role } from "../../App"; import { Typography } from "antd"; const Service = () => { const { data, isLoading, refetch } = useServiceData(); const [open, setOpen] = useState(false); const showModal = () => { setOpen(true); }; return (
{open && }
Services {role !== "Checker" && ( )}
); }; export default Service;