All checks were successful
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
24 lines
701 B
TypeScript
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>
|
|
)
|
|
}
|