mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 09:03:36 +00:00
23 lines
431 B
TypeScript
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 />
|
|
</>
|
|
);
|
|
};
|