Portal/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx

19 lines
667 B
TypeScript
Raw Normal View History

2025-07-15 21:59:38 +03:00
import { describePromptVariable } from '../../labels';
import { PromptVariableType } from '../../models/prompting';
/** Displays all prompt variable types with their descriptions. */
2025-07-14 19:05:50 +03:00
export function TabViewVariables() {
2025-07-15 21:59:38 +03:00
return (
<div className='pt-8'>
<ul className='space-y-1'>
{Object.values(PromptVariableType).map(variableType => (
<li key={variableType} className='flex flex-col'>
<span className='font-math text-primary'>{`{{${variableType}}}`}</span>
<span className='font-main text-muted-foreground'>{describePromptVariable(variableType)}</span>
</li>
))}
</ul>
</div>
);
2025-07-14 19:05:50 +03:00
}