metis-desk/modules/companies/src/web/processes/process-help.tsx

17 lines
604 B
TypeScript
Raw Normal View History

import { ContextHelp } from "@repo/shadcn-ui/components/context-help";
import { useTranslation } from "react-i18next";
export function ProcessHelp({ template = false }: { template?: boolean }) {
const { t } = useTranslation("companies");
const prefix = template ? "processes.templateHelp" : "processes.help";
return (
<ContextHelp
description={t(`${prefix}.description`)}
examples={t(`${prefix}.examples`)}
examplesLabel={t("mail.examplesLabel")}
guidance={t(`${prefix}.guidance`)}
scopeNote={t(`${prefix}.scope`)}
title={t(`${prefix}.title`)}
/>
);
}