{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-work-collections-work-collections-2-2",
  "type": "registry:block",
  "title": "Work collections 2",
  "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-work-collections-2-2.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/work-collections-work-collections-2-2.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/workspace-tools.tsx:783.\nimport { useState } from \"react\";\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport {\n  SceneCard,\n  Pill,\n  SearchField,\n} from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample({ id = \"lists\" }: { id?: string } = {}) {\n  const { tasks, projects } = useWorkData();\n  const [project] = useState(projects[0].client);\n  const [query, setQuery] = useState(\"\");\n  const filtered = tasks.filter(\n    (t) =>\n      t.project === project &&\n      t.title.toLowerCase().includes(query.toLowerCase()),\n  );\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={id}>\n        <SceneCard\n          title={projects.find((p) => p.client === project)?.name}\n          action={<Pill>{filtered.length} tasks</Pill>}\n        >\n          <SearchField\n            value={query}\n            onChange={setQuery}\n            placeholder=\"Search project tasks\"\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-work-collections-2-2. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
