-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51b9bee
commit 0b74aeb
Showing
2 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/pages/customer/review/history/components/DeleteReviewModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Text } from "../../../../../components"; | ||
import { | ||
ModalOverlay, | ||
ModalContent, | ||
ModalMessage, | ||
ModalButtons, | ||
ModalButton, | ||
} from "../../../pet/info/components/Modal.styles"; | ||
|
||
interface ModalProps { | ||
isOpen: boolean; | ||
onConfirm: () => void; | ||
onCancel: () => void; | ||
} | ||
|
||
const DeleteReviewModal: React.FC<ModalProps> = ({ | ||
isOpen, | ||
onConfirm, | ||
onCancel, | ||
}) => { | ||
if (!isOpen) return null; | ||
|
||
return ( | ||
<ModalOverlay> | ||
<ModalContent> | ||
<ModalMessage> | ||
<Text typo="subtitle200">정말 삭제하시겠습니까?</Text> | ||
<Text typo="body400">삭제한 뒤에는 복구할 수 없어요</Text> | ||
</ModalMessage> | ||
<ModalButtons> | ||
<ModalButton onClick={onConfirm}>예</ModalButton> | ||
<ModalButton onClick={onCancel}>아니오</ModalButton> | ||
</ModalButtons> | ||
</ModalContent> | ||
</ModalOverlay> | ||
); | ||
}; | ||
|
||
export default DeleteReviewModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters