{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-work-collections-projects-1",
  "type": "registry:block",
  "title": "Projects",
  "description": "Workspace card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "workspace"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/work-collections-projects-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/work-collections-projects-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/workspace-tools.tsx:770.\nimport { useState } from \"react\";\nimport { IconFolder } from \"@tabler/icons-react\";\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport { TreeView } from \"./runtime/registry/overtrue/tree-view\";\nimport { SceneCard } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample({ id = \"lists\" }: { id?: string } = {}) {\n  const { tasks, projects } = useWorkData();\n  const [project, setProject] = useState(projects[0].client);\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={id}>\n        <SceneCard title=\"Projects\">\n          <TreeView\n            nodes={projects.map((p) => ({\n              id: p.client,\n              label: p.name,\n              icon: <IconFolder size={17} />,\n              badge: tasks.filter((t) => t.project === p.client).length,\n            }))}\n            selected={[project]}\n            onSelect={(node) => setProject(node.id)}\n          />\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/work-collections-projects-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
