qazaq-legacy-foundation-web/src/components/BookWhere.tsx
Peppa 8f92e3f07f
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 2с
peppa/test test: success за 0с
peppa/build build: success за 45с
ci / checks (pull_request) Successful in 1m37s
deploy / deploy (pull_request) Successful in 17s
QLFW-28: текст «Где купить книгу» в блоке книги
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:26:34 +05:00

24 lines
701 B
TypeScript

import React from 'react'
import type { Dict } from '@/i18n'
export function BookWhere({ t, tbc }: { t: Dict['book']; tbc: string }) {
const buy = t.buy
return (
<div className="mt-8">
<h4 className="font-serif text-xl sm:text-2xl">{t.get}</h4>
{buy ? (
<>
<p className="mt-3 text-muted">{buy.intro}</p>
<ul className="mt-3 list-disc space-y-1 pl-6 text-muted">
{buy.platforms.map((p) => <li key={p}>{p}</li>)}
</ul>
<p className="mt-3 text-muted">{buy.stores}</p>
<p className="mt-3 text-muted">{buy.note}</p>
</>
) : (
<p className="mt-3 text-muted">{tbc}</p>
)}
</div>
)
}