Added few functions

This commit is contained in:
2026-02-16 14:43:02 +01:00
parent 0c908a21ac
commit 1ec4c935c9
31 changed files with 352 additions and 35 deletions

View File

@@ -1,5 +1,7 @@
'use client';
import { useBodyScrollLock } from '@/lib/body-scroll-lock';
interface AlertModalProps {
isOpen: boolean;
type: 'success' | 'error' | 'info' | 'warning';
@@ -15,6 +17,7 @@ export default function AlertModal({
message,
onClose,
}: AlertModalProps) {
useBodyScrollLock(isOpen);
if (!isOpen) return null;
const getStyles = () => {