From de71d4c0d712bcc7ca9b89ef3e427d22b1a912bf Mon Sep 17 00:00:00 2001 From: Suraj Jha Date: Mon, 18 Aug 2025 23:45:01 +0545 Subject: [PATCH] fix: add message to create custom template --- .../outline/components/LayoutSelection.tsx | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/servers/nextjs/app/(presentation-generator)/outline/components/LayoutSelection.tsx b/servers/nextjs/app/(presentation-generator)/outline/components/LayoutSelection.tsx index 57c2a77b..3dc97448 100644 --- a/servers/nextjs/app/(presentation-generator)/outline/components/LayoutSelection.tsx +++ b/servers/nextjs/app/(presentation-generator)/outline/components/LayoutSelection.tsx @@ -172,16 +172,22 @@ const LayoutSelection: React.FC = ({

Custom AI Templates

-
- {customGroups.map((group) => ( - - ))} -
+ {customGroups.length === 0 ? ( +
+ No custom templates. Create one from "Create Template" menu. +
+ ) : ( +
+ {customGroups.map((group) => ( + + ))} +
+ )} );