/* REVO JURIS — Practice areas, Rights band, Civil letter selector (single-language) */
function SecHead({ head, light, center }) {
const lang = useLang();
const tx = useTx();
const cjk = lang === 'ZH' ? ' cjk' : '';
return (
{tx(head.eyebrow)}
{tx(head.h2)}
{head.sub &&
{tx(head.sub)}
}
);
}
function PracticeAreas({ onSelect, onFees }) {
const lang = useLang();
const tx = useTx();
const cjk = lang === 'ZH' ? ' cjk' : '';
return (
{PRACTICE_AREAS.map(pa => (
{tx(pa.title)}
{tx(pa.desc)}
{pa.items.map((it, i) => (
- {tx(it)}
))}
))}
);
}
function RightsBand({ onHotline }) {
const lang = useLang();
const tx = useTx();
const cjk = lang === 'ZH' ? ' cjk' : '';
return (
{RIGHTS.map(([num, title, desc]) => (
{num}
{tx(title)}
{tx(desc)}
))}
{tx(RIGHTS_NOTE)}
);
}
function CivilLetters({ onEnquire }) {
const lang = useLang();
const tx = useTx();
const cjk = lang === 'ZH' ? ' cjk' : '';
const [active, setActive] = React.useState('debt');
const t = CIVIL_TYPES.find(c => c.id === active);
return (
{CIVIL_TYPES.map(c => (
))}
{tx(t.title)}
);
}
function CivRow({ icon, k, v, cjk, tx }) {
return (
);
}
Object.assign(window, { SecHead, PracticeAreas, RightsBand, CivilLetters, CivRow });