"use client"; import { cn } from "@openstatus/ui/lib/utils"; import { ALL_EMBED_SECTIONS, useEmbed } from "../../hooks/use-embed"; export function EmbedShell({ children, className, ...props }: React.ComponentProps<"div">) { const { mode, sections } = useEmbed(); const hideAttrs = ALL_EMBED_SECTIONS.reduce>( (acc, section) => { if (!sections.includes(section)) acc[`data-hide-${section}`] = "true"; return acc; }, {}, ); return (
{children}
); }