'use client'; import { Heading } from "@/components/ui/Typography"; import { useTranslation } from "@/lib/hooks/useTranslation"; import { useEffect, useState } from "react"; import { BuildBoxSidebarWithTranslation } from "./BuildBoxSidebarWithTranslation"; interface ClientSidebarWrapperWithTranslationProps { isMobile?: boolean; } export function ClientSidebarWrapperWithTranslation({ isMobile = false }: ClientSidebarWrapperWithTranslationProps) { const { t } = useTranslation(); // Use state to prevent hydration errors const [isClient, setIsClient] = useState(false); // After component mounts, set isClient to true useEffect(() => { setIsClient(true); }, []); // On the server, or during hydration, return a placeholder with the same dimensions if (!isClient) { return (
Loading...
{t('buildBox.sidebar.boxPrice')}
$0.00