"use client" import { type ReactNode } from "react" import { SupportHeader } from "@/app/(support)/support/_components/support-header" import { CommunityCategoryMenuContent, CommunityCategoryNav } from "@/app/(support)/support/_components/community-category-nav" import { useCommunityCategoryRoute } from "@/app/(support)/support/_components/support-community-route" import { useI18n } from "@/i18n/provider" import { cn } from "@/lib/utils" export function CommunityFrame({ active, categoryRoute, children, toc, }: { active?: number | "all" categoryRoute: ReturnType children: ReactNode toc?: ReactNode }) { const t = useI18n() const categoryNavigation = ( ) return (
{categoryNavigation}, }} />
{children}
{toc ?
{toc}
: null}
) }