import { CATEGORY_TONE, Icon, type CategoryCode } from '@barev/ui'; import { paramsSummary, useI18n } from '@barev/web'; import type { ReactNode } from 'react'; export const toneClass = (c: string) => `bc-tone-${CATEGORY_TONE[c as CategoryCode] ?? 'white'}`; export function PageHead({ title, back = true, right }: { title: ReactNode; back?: boolean; right?: ReactNode }) { const { t } = useI18n(); return (