'use client'; import { useTranslation } from "@/lib/hooks/useTranslation"; import Link from "next/link"; import { BoxOption } from "../BuildBoxCustomizeClient"; import { RedirectIfEmptyBox } from "../RedirectIfEmptyBox"; import { BuildBoxCustomizeClientWithTranslation } from "./BuildBoxCustomizeClientWithTranslation"; import { BuildBoxLayout } from "./BuildBoxLayout"; interface BuildBoxCustomizePageContentProps { boxes: BoxOption[]; } export function BuildBoxCustomizePageContent({ boxes }: BuildBoxCustomizePageContentProps) { const { t } = useTranslation(); // Back button component const BackButton = ( {t('buildBox.customize.back')} ); // If no boxes, display a message if (!boxes || boxes.length === 0) { return ( {t('buildBox.customize.emptyMessage')} ); } return ( {/* Client component to check if box has items and redirect if empty */} {/* Boxes Grid - Client Component */} ); }
{t('buildBox.customize.emptyMessage')}