tasko/components/providers/modal-provider.tsx

24 lines
431 B
TypeScript
Raw Normal View History

2024-02-16 01:49:19 +00:00
'use client';
2024-02-15 02:30:10 +00:00
2024-02-16 01:49:19 +00:00
import { useEffect, useState } from 'react';
2024-02-15 02:30:10 +00:00
2024-02-16 01:49:19 +00:00
import { CardModal } from '@/components/modals/card-modal';
import { ProModal } from '@/components/modals/pro-modal';
2024-02-15 02:30:10 +00:00
export const ModalProvider = () => {
const [isMounted, setIsMounted] = useState(false);
useEffect(() => {
setIsMounted(true);
}, []);
if (!isMounted) return null;
return (
<>
<CardModal />
<ProModal />
</>
2024-02-16 01:49:19 +00:00
);
};