tasko/components/providers/modal-provider.tsx
2024-02-15 20:49:19 -05:00

23 lines
431 B
TypeScript

'use client';
import { useEffect, useState } from 'react';
import { CardModal } from '@/components/modals/card-modal';
import { ProModal } from '@/components/modals/pro-modal';
export const ModalProvider = () => {
const [isMounted, setIsMounted] = useState(false);
useEffect(() => {
setIsMounted(true);
}, []);
if (!isMounted) return null;
return (
<>
<CardModal />
<ProModal />
</>
);
};