"use client"; import * as React from "react"; export const examples = { adminRich: { path: "github/bknd-io/bknd-examples", startScript: "example-admin-rich", initialPath: "/data/schema", }, }; export const StackBlitz = ({ path, ratio = 9 / 16, example, ...props }: { path?: string; ratio?: number; example?: keyof typeof examples; [key: string]: unknown; }) => { const selected = example ? examples[example] : undefined; const finalPath = path || selected?.path || "github/bknd-io/bknd-examples"; const params = new URLSearchParams({ ctl: "1", hideExplorer: "1", embed: "1", view: "preview", ...(selected || {}), ...props, }); const url = new URL(`https://stackblitz.com/${finalPath}?${params.toString()}`); return ( <>