Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

1008 B
Raw Blame
import { Trans, useLingui } from '@lingui/react/macro';
import { TemplatesManagerSection } from './TemplatesManagerSection';

export function ProjectTemplatesSection() {
  const { t } = useLingui();
  return (
    <TemplatesManagerSection
      config={{
        scope: 'local',
        title: t`Project templates`,
        scopeBadge: 'project',
        description: (
          <Trans>
            Stored at <code className="font-mono">.ok/templates/</code> in this project. Available
            in every folder (folder-scoped templates can override by filename).
          </Trans>
        ),
        emptyMessage: t`No project templates yet. Create one to make it available everywhere in this project. Folder-scoped templates live on each folder's overview page.`,
        loadErrorTitle: t`Failed to load project templates`,
        badge: { label: t`project`, variant: 'gray' },
        settingsId: 'settings-project-templates-title',
        testIdPrefix: 'project-templates',
      }}
    />
  );
}