* MED-151: add profile view and working smoking dashboard card * update zod * move some components to shared * move some components to shared * remove console.logs * remove unused password form components * only check null for variant * use pathsconfig
23 lines
501 B
TypeScript
23 lines
501 B
TypeScript
import { Separator } from "@kit/ui/separator";
|
|
import { Trans } from "@kit/ui/trans";
|
|
|
|
export default function SettingsSectionHeader({
|
|
titleKey,
|
|
descriptionKey,
|
|
}: {
|
|
titleKey: string;
|
|
descriptionKey: string;
|
|
}) {
|
|
return (
|
|
<div className="space-y-2">
|
|
<h1 className="text-2xl font-semibold text-gray-900">
|
|
<Trans i18nKey={titleKey} />
|
|
</h1>
|
|
<p className="text-gray-600">
|
|
<Trans i18nKey={descriptionKey} />
|
|
</p>
|
|
<Separator />
|
|
</div>
|
|
);
|
|
}
|