amati/src/app/dashboard/(auth)/roles/_modals/CreateModal/CreateModal.tsx
2024-01-27 18:15:07 +07:00

26 lines
410 B
TypeScript

import React from "react";
import FormModal from "../FormModal";
interface Props {
opened: boolean
onClose?: () => void
}
export default function CreateModal(props: Props) {
return (
<FormModal
title="Create new role"
data={{
code: "",
description: "",
id: "",
isActive: false,
name: "",
}}
readonly={false}
opened={props.opened}
onClose={props.onClose}
/>
);
}