import { RolesActionDialog } from './roles-action-dialog' import { RolesDeleteDialog } from './roles-delete-dialog' import { useRolesContext } from './roles-provider' export function RolesDialogs() { const { open, setOpen, currentRow, setCurrentRow } = useRolesContext() return ( <> { if (!state) { setOpen(null) setCurrentRow(null) } }} currentRow={currentRow} /> ) }