import type { contentType } from "../content/content"; import { useNavStore } from "../store"; import { Profile } from "./Profile"; import { useState, useEffect } from "react"; export const Auth = ({ content, langPrefix, }: { content: contentType; langPrefix: string; }) => { const { user } = useNavStore(); const [isLoading, setIsLoading] = useState(true); useEffect(() => { setIsLoading(false); }, []); if (isLoading) { return (