fix: add message to create custom template

This commit is contained in:
Suraj Jha 2025-08-18 23:45:01 +05:45
parent fbfd3e25b4
commit de71d4c0d7
No known key found for this signature in database
GPG key ID: 5AC6C16355CE2C14

View file

@ -172,16 +172,22 @@ const LayoutSelection: React.FC<LayoutSelectionProps> = ({
<div className="flex items-center justify-between mb-3">
<h3 className="text-lg font-semibold text-gray-900">Custom AI Templates</h3>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
{customGroups.map((group) => (
<GroupLayouts
key={group.id}
group={group}
onSelectLayoutGroup={handleLayoutGroupSelection}
selectedLayoutGroup={selectedLayoutGroup}
/>
))}
</div>
{customGroups.length === 0 ? (
<div className="text-sm text-gray-600 py-2">
No custom templates. Create one from "Create Template" menu.
</div>
) : (
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
{customGroups.map((group) => (
<GroupLayouts
key={group.id}
group={group}
onSelectLayoutGroup={handleLayoutGroupSelection}
selectedLayoutGroup={selectedLayoutGroup}
/>
))}
</div>
)}
</div>
</div>
);