"use client"; import { Camera } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog"; import { useState, type ReactNode } from "react"; import useAppStore from "@/stores/use-app-store"; interface CameraNotificationModalProps { onClose?: () => void; children?: ReactNode; } export function CameraNotificationModal({ children, onClose, }: CameraNotificationModalProps) { const [open, setOpen] = useState(false); const { setIsCountDown } = useAppStore(); const handleClose = () => { setOpen(false); onClose?.(); }; const handleContinue = () => { setIsCountDown(true); handleClose(); }; return ( {children}
Thông báo quan trọng Để có kết quả tốt nhất bạn hay nhìn thẳng vào camera nhé
); }