⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
'use client';
import { useTranslations } from 'next-intl';
import { byKey } from '@/utils/messageKey';
import GodEmailPlaceholderList from './GodEmailPlaceholderList';
import type { GodEmailTemplatesForm } from '../../hooks/useGodEmailTemplatesForm';
export default function GodEmailPlaceholders({
form,
onInsert,
}: {
form: GodEmailTemplatesForm;
onInsert: (name: string) => void;
}) {
const t = useTranslations('god.emailTemplates');
const describe = byKey(t);
return (
<GodEmailPlaceholderList
title={t('placeholders')}
items={form.settings.placeholders.map(({ name }) => ({
name,
description: describe(`placeholderText.${name}`),
used: form.layout.html.includes(`{${name}}`),
missing: form.missingPlaceholders.includes(name),
}))}
onInsert={onInsert}
/>
);
}