mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-02-07 11:42:55 +00:00
23 lines
No EOL
428 B
TypeScript
23 lines
No EOL
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 />
|
|
</>
|
|
)
|
|
} |