File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ import Button from "../commons/button" ;
2+ import { Dialog } from "../commons/dialog" ;
3+
4+ type RemoveNoteModalProps = {
5+ isOpen : boolean ;
6+ onConfirm : ( ) => void ;
7+ onCloseModal : ( ) => void ;
8+ } ;
9+
10+ export default function RemoveNoteModal ( {
11+ isOpen,
12+ onConfirm,
13+ onCloseModal,
14+ } : RemoveNoteModalProps ) {
15+ return (
16+ < Dialog isOpen = { isOpen } onCloseModal = { onCloseModal } >
17+ < Dialog . Title > 페이지를 삭제하시겠습니까?</ Dialog . Title >
18+ < Dialog . CloseButton onCloseModal = { onCloseModal } />
19+ < div className = "flex flex-row justify-center gap-2" >
20+ < Button
21+ className = "bg-red-500 text-neutral-200 hover:bg-red-600"
22+ onClick = { onConfirm }
23+ >
24+ 삭제
25+ </ Button >
26+ < Button
27+ className = "text-neutral-700 hover:bg-neutral-100"
28+ onClick = { onCloseModal }
29+ >
30+ 취소
31+ </ Button >
32+ </ div >
33+ </ Dialog >
34+ ) ;
35+ }
You can’t perform that action at this time.
0 commit comments