From 5e8d2fa8cc7f33b11376f6ef4f432ee42484f6d0 Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Fri, 9 May 2025 15:19:03 +0900 Subject: [PATCH] feat: enhance DoubleBtnAlert component with dynamic alert messages and button actions --- src/components/ui/common/DoubleBtnAlert.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/ui/common/DoubleBtnAlert.tsx b/src/components/ui/common/DoubleBtnAlert.tsx index 34af34b..43129b7 100644 --- a/src/components/ui/common/DoubleBtnAlert.tsx +++ b/src/components/ui/common/DoubleBtnAlert.tsx @@ -1,17 +1,26 @@ +'use client' + +import { usePopupController } from '@/store/popupController' import React from 'react' export default function DoubleBtnAlert() { + const { alertMsg, alert2BtnYes, alert2BtnNo } = usePopupController() + return (
-
本当に削除しますか?
+
{alertMsg}
- +
- +