{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-emails-email-preview-2",
  "type": "registry:block",
  "title": "Email preview",
  "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/emails-email-preview-2.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/emails-email-preview-2.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/communication.tsx:493.\nimport { useState } from \"react\";\nimport { SceneCard } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const templates = [\n    {\n      id: \"review\",\n      name: \"Review request\",\n      subject: \"Visitor concepts are ready for review\",\n      body: \"The latest concepts are ready. Please review the visual direction and leave feedback before September 25.\",\n    },\n    {\n      id: \"invite\",\n      name: \"Project invitation\",\n      subject: \"You’ve been invited to Visitor experience\",\n      body: \"Maya invited you to join the project. Open the workspace to see the brief, meet the team, and review the next deliverables.\",\n    },\n    {\n      id: \"digest\",\n      name: \"Weekly digest\",\n      subject: \"This week at Acme Studio\",\n      body: \"Two deliverables are ready for review. The Visitor concepts are awaiting feedback, and the identity handover is prepared for approval.\",\n    },\n  ];\n  const [selected] = useState(\"review\");\n  const [drafts] = useState<Record<string, { subject: string; body: string }>>(\n    {},\n  );\n  const [recipient] = useState(\"alex@client.example\");\n  const template = templates.find((item) => item.id === selected)!;\n  const draft = drafts[selected] ?? template;\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"emails\">\n        <SceneCard\n          title=\"Email preview\"\n          description={`To: ${recipient || \"Preview recipient\"}`}\n        >\n          <div className=\"scene-email-document\">\n            <span className=\"scene-wordmark\">Acme Studio</span>\n            <h2>{draft.subject}</h2>\n            <p>{draft.body}</p>\n            <div className=\"scene-email-project\">\n              <strong>Visitor experience</strong>\n              <p>Culture venue · Project workspace</p>\n              <a href=\"#/datagrid\" className=\"scene-button is-primary\">\n                Open project\n              </a>\n            </div>\n            <footer>\n              You’re receiving this sample as a project collaborator.\n              <br />\n              Acme Studio · Workspace preview\n            </footer>\n          </div>\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/emails-email-preview-2. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
