mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
Sorted all imports in all packages, `cms`, `design-system` and `ui-library` apps by running `pnpm format` on them. All changes in this PR are done by the script.
14 lines
402 B
TypeScript
14 lines
402 B
TypeScript
'use server'
|
|
|
|
import path from 'path'
|
|
|
|
import { BlockItemCode } from './block-item-code'
|
|
import { generateRegistryTree } from '@/lib/process-registry'
|
|
|
|
export async function RegistryBlock({ itemName }: { itemName: string }) {
|
|
const registryPath = path.join(process.cwd(), 'public', 'r', `${itemName}.json`)
|
|
const tree = generateRegistryTree(registryPath)
|
|
|
|
return <BlockItemCode files={tree} />
|
|
}
|