import clsx from "clsx"; import Link from "next/link"; import type { ComponentPropsWithoutRef, ReactNode } from "react"; import { Heading } from "./Heading"; import { Prose } from "./Prose"; export const a = Link; // biome-ignore lint/performance/noBarrelFile: export { Button } from "./Button"; export { CodeGroup, Code as code, Pre as pre } from "./Code"; export function wrapper({ children }: { children: ReactNode }) { return (
{children} {/*
*/}
); } export const h2 = function H2( props: Omit, "level">, ) { return ; }; function InfoIcon(props: ComponentPropsWithoutRef<"svg">) { return ( ); } export function Note({ children }: { children: ReactNode }) { return (
{children}
); } export function Row({ children }: { children: ReactNode }) { return (
{children}
); } export function Col({ children, sticky = false, }: { children: ReactNode; sticky?: boolean; }) { return (
:first-child]:mt-0 [&>:last-child]:mb-0", sticky && "xl:sticky xl:top-24", )} > {children}
); } export function Properties({ children }: { children: ReactNode }) { return (
    {children}
); } const numberTypeTooltips = { f64: "64-bit floating-point number", i64: "64-bit signed integer", u64: "64-bit unsigned integer", }; export function Property({ name, children, type, typeLink, numberType, required, }: { name: string; children: ReactNode; type?: string; typeLink?: string; numberType?: "f64" | "i64" | "u64"; required?: boolean; }) { return (
  • Name
    {name}
    {required && ( <>
    Required
    Required
    )} {numberType && ( <>
    Type
    {numberType}
    )} {type && ( <>
    Type
    {typeLink ? ( {type} ) : ( type )}
    )}
    Description
    {children}
  • ); }