import { Button, Drawer } from "antd"; import React, { useState } from "react"; import type { ButtonProps } from "antd"; import RoleMapForm from "./rolemap-form"; interface RoleMapDrawerProps extends ButtonProps { title: string; roleId: string; domainId?: string; roleType?: "dept" | "staff" | "both"; } export default function RoleMapDrawer({ roleId, title, domainId, roleType = "both", ...buttonProps }: RoleMapDrawerProps) { const [open, setOpen] = useState(false); const handleTrigger = () => { setOpen(true); }; return ( <> { setOpen(false); }} title={title} width={400}> ); }