+ {(
+ Object.entries(promptCategories) as [
+ PromptTemplateCategory,
+ IPromptCategory
+ ][]
+ )
+ .filter(([categoryName]) => enabledCategories.includes(categoryName))
+ .map(([categoryName, category]) => (
+
+ {category.emoji} {categoryName}
+
+ }
+ bordered
+ dataSource={category.prompts}
+ style={{ marginBottom: '1rem' }}
+ renderItem={(item, idx) => (
+ e.stopPropagation()}
+ >
+ Paper
+ ,
+ ]
+ : []
+ }
+ extra={
+
+ {item.tags?.map((tag) => (
+
+ {tag}
+
+ ))}
+
+ }
+ onClick={() =>
+ handleItemClick(categoryName as PromptTemplateCategory, idx)
+ }
+ className={'template-list-item'}
+ >
+
+
+ )}
+ />
+ ))}
+
+