17 lines
604 B
TypeScript
17 lines
604 B
TypeScript
|
|
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`)}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|