{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "record-sections",
  "title": "Record sections",
  "description": "Groups a record's facts into the entity's own sections, each in its own card.",
  "dependencies": [
    "@registrystack/app-runtime@~0.43.0-next.0"
  ],
  "registryDependencies": [
    "@registrystack/record-summary"
  ],
  "files": [
    {
      "path": "record/record-sections.tsx",
      "content": "import type { EntityModel, RecordView } from \"@registrystack/app-runtime\";\nimport { RecordFacts } from \"@/blocks/record/record-summary\";\n\n/** One record's fields, grouped into the sections the session model gives it. */\nexport function RecordSections({\n  entity,\n  record,\n}: {\n  entity: EntityModel;\n  record: RecordView;\n}) {\n  return (\n    <>\n      {entity.sections.map((section) => (\n        <section className=\"card section-card\" key={section.id}>\n          <h2>{section.label}</h2>\n          <div className=\"section-card-body\">\n            <RecordFacts\n              entity={entity}\n              record={record}\n              fields={section.fields}\n            />\n          </div>\n        </section>\n      ))}\n    </>\n  );\n}\n",
      "type": "registry:block",
      "target": "@components/record/record-sections.tsx"
    }
  ],
  "type": "registry:block"
}