File size: 765 Bytes
eeb9404 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 'use client';
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog';
import { PermissionMatrix } from './PermissionMatrix';
interface PermissionMatrixModalProps {
open: boolean;
onOpenChange: (open: boolean) => void;
onModeChange?: () => void;
}
export function PermissionMatrixModal({
open,
onOpenChange,
onModeChange,
}: PermissionMatrixModalProps) {
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="lg:max-w-3xl max-h-[80vh] overflow-y-auto">
<DialogHeader>
<DialogTitle>Customize permissions (Custom mode)</DialogTitle>
</DialogHeader>
<PermissionMatrix onModeChange={onModeChange} />
</DialogContent>
</Dialog>
);
}
|