'use client'
import React, { useEffect, useState } from 'react'
import dynamic from 'next/dynamic'
// Loading component with animation
const LoadingComponent = () => (
Loading API Key Management...
)
// Dynamically import the ApiKeyClient component
const ApiKeyClient = dynamic(() => import('./api-key-client'), {
ssr: false,
loading: () =>
})
export default function ClientWrapper() {
const [isMounted, setIsMounted] = useState(false)
useEffect(() => {
setIsMounted(true)
}, [])
if (!isMounted) {
return
}
return
}