import RoleForm from "@/forms/management/RoleForm";
// import AuthenticatedLayout, { AuthenticatedSection, BreadcrumbItem } from "@/Layouts/MainLayout";
import { Permission, PermissionList, Role } from "@/types";
import AppLayout from '../../../layouts/app-layout';
import { Container } from "@mantine/core";

interface Props{
    permissions: PermissionList;
    role?: Role;
}

export default function Page({ permissions, role, }: Props) {
    return (
        <AppLayout>
            <Container size={'xl'}>
                <RoleForm
                    status="update"
                    permissions={permissions}
                    role={role}
                />
            </Container>
        </AppLayout>
    );
}
