{n.place}
} - {image &&{text}
)} - {source && } - {t.news.title} -{text}
)} -{m.mission.text}
{t.sections.goalText}
{d.text}
{people.founder}
{t.sections.director}
{people.director}
{b.role === 'chair' ? t.sections.chair : t.sections.boardMember}
{b.name}
{t.contacts.lead}
-- {t.contacts.emailLabel}: -
- {c.phone &&{t.contacts.phoneLabel}: {c.phone}
} - {c.address &&{t.contacts.addressLabel}: {c.address}
} - {c.socials.length > 0 && ( -{t.contacts.socialsLabel}:{' '} - {c.socials.map((s, i) => {i > 0 && ', '}{s.label})} -
- )} -- {t.collaboration.instagram} -
-{n.place}
} - {image &&{text}
)} - {source && } - {t.news.title} -{n.summary}
} -{c.text}
} +{c.tbc ?
{m.mission.text}
+ {m.mission.tbc &&{t.book.author}
{text}
)} - {t.book.translationReview &&{t.book.translationReview}
} - {t.projects.more} -{p.summary}
} - {t.projects.more} -{n.summary}
} {n.place &&{n.place}
}{m.collaboration.text}
-+ {m.collaboration.email ? ( + + ) : ( + + {t.tbc}: {t.collaboration.contactMissing} + + )} +
{t.collaboration.instagram} ++ {t.legal.privacy.title} +
{text}
)} -{t.book.author}
-{t.book.translationReview}
} - {[...t.book.paragraphs, ...t.book.additions].map(text =>{text}
)} -{t.book.author}
{text}
)}{t.projects.more}{p.summary}
} - {t.projects.more}{buy.intro}
-{buy.storesIntro}
-{buy.note}
-{text}
-} diff --git a/src/components/ContactForm.tsx b/src/components/ContactForm.tsx deleted file mode 100644 index f591f30..0000000 --- a/src/components/ContactForm.tsx +++ /dev/null @@ -1,81 +0,0 @@ -'use client' - -import Link from 'next/link' -import { ContactEmailFallback } from './ContactEmailFallback' -import { useActionState, useRef } from 'react' -import { submitInquiry, type InquiryState } from '@/app/actions/inquiry' -import type { Dict, Locale } from '@/i18n' - -/** Форма обращения. dark — на тёмном фоне блока «Сотрудничество». Тексты — из словаря, ошибки по полям. */ -export function ContactForm({ t, locale, email, dark = false, privacyLink = false }: { t: Dict; locale: Locale; email: string; dark?: boolean; privacyLink?: boolean }) { - const [state, action, pending] = useActionState{f.errors[k]}
: null - const bad = (k: 'name' | 'email' | 'message' | 'consent') => (errors.includes(k) ? { 'aria-invalid': true, 'aria-describedby': `err-${k}` } : {}) - - if (state.status === 'sent') { - return ( -{f.successText}
- -{t.sections.review}
} - {children} -Наличие и стоимость книги уточняйте непосредственно у продавцов.
') - }) - it.each(['kk', 'en'] as const)('язык %s: те же магазины, без пометок', (l) => { - const html = render(l) - expect(html).toContain('href="https://www.marwin.kz/product/serkebaeva-i-ermek-serkebaev-i-zhizn-i-molodost-i-schaste-220988"') - expect(html).toContain('href="https://www.flip.kz/catalog?prod=6364653') - expect(html).toContain('