Skip to content

Commit 4987453

Browse files
committed
feat: 페이지 삭제 모달 구현
1 parent e964ccc commit 4987453

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
}

0 commit comments

Comments
 (0)