"use client"; import { type ComponentRenderProps } from "@json-render/react"; export function Stack({ element, children }: ComponentRenderProps) { const { direction, gap, align } = element.props as { direction?: string | null; gap?: string | null; align?: string | null; }; const gaps: Record = { none: "0", sm: "8px", md: "16px", lg: "24px", }; const alignments: Record = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch", }; return (
{children}
); }