{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The featured review of MediaList in a muted card: a label with the stars, the text in quotes and the author.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/** The featured review of MediaList in a muted card: a label with the stars, the text in quotes and the author. */\nimport { Fragment, type ReactNode } from \"react\";\nimport { Group, Stack, Text } from \"../compose\";\nimport { Rating } from \"../components/rating\";\nimport { tpl } from \"../utils\";\nimport type { MediaExtras, MediaListLabels } from \"../blocks/media-list.types\";\n\nexport type MediaReviewProps = {\n  extras: MediaExtras;\n  labels: MediaListLabels;\n};\n\nexport function MediaReview({ extras, labels }: MediaReviewProps) {\n  return (\n    <>\n      {(extras.reviews ?? []).map((r, i) => (\n        <Fragment key={r.id}>\n          {(i < 1) ? (\n            <Stack gap=\"4\" align=\"stretch\" className=\"rounded bg-muted p-6\" data-slot=\"media-review\">\n              <Group gap=\"4\" align=\"center\" justify=\"between\" className=\"flex-wrap\">\n                <Text size=\"sm\" weight=\"medium\">\n                  {labels.featured}\n                </Text>\n                <Rating value={r.rating} label={tpl(labels.rating, r.rating)} />\n              </Group>\n              <Text size=\"base\">\n                {tpl(\"“{0}”\", r.text)}\n              </Text>\n              <Text size=\"sm\" className=\"text-muted-foreground\">\n                {tpl(\"{0} · {1}\", r.author, r.date)}\n              </Text>\n            </Stack>\n          ) : null}\n        </Fragment>\n      ))}\n    </>\n  );\n}\n",
      "path": "components/media-review.tsx",
      "target": "components/media-review.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "media-review",
  "registryDependencies": [
    "compose",
    "media-list",
    "rating",
    "utils"
  ],
  "runtime": "react",
  "title": "Media Review",
  "type": "registry:component"
}
