tasko/components/providers/modal-provider.tsx

23 lines
428 B
TypeScript
Raw Normal View History

2024-02-15 02:30:10 +00:00
"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 />
</>
)
}