34 lines
895 B
TypeScript
34 lines
895 B
TypeScript
import { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "@common/components";
|
|
|
|
|
|
type ModalType={
|
|
bodyClass:string
|
|
butNm:string
|
|
title:string
|
|
body:React.ReactNode
|
|
}
|
|
export function BdstRegModal({bodyClass,butNm,title ,body}:ModalType ) {
|
|
return (
|
|
<>
|
|
<Dialog >
|
|
<DialogTrigger asChild>
|
|
<Button className="mr-4 rounded-lg">{butNm}</Button>
|
|
</DialogTrigger>
|
|
<DialogContent className="sm:max-w-7xl">
|
|
<DialogHeader>
|
|
<DialogTitle>{title}</DialogTitle>
|
|
<DialogDescription>
|
|
</DialogDescription>
|
|
</DialogHeader>
|
|
{body}
|
|
|
|
|
|
<DialogFooter className="sm:justify-start">
|
|
|
|
</DialogFooter>
|
|
</DialogContent>
|
|
</Dialog>
|
|
</>
|
|
);
|
|
}
|