mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
23 lines
428 B
TypeScript
23 lines
428 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 />
|
||
|
</>
|
||
|
)
|
||
|
}
|