From 40ebd2b2001e9a93669e348196361a57a5ad7159 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Fri, 13 Mar 2026 12:29:45 -0400 Subject: [PATCH] =?UTF-8?q?refactor:=20TemplateCard=20=E2=80=94=20remove?= =?UTF-8?q?=20store=20subscription,=20add=20Configure=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- .../src/components/scripts/TemplateCard.tsx | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/frontend/src/components/scripts/TemplateCard.tsx b/frontend/src/components/scripts/TemplateCard.tsx index 1192cc67..61e303ff 100644 --- a/frontend/src/components/scripts/TemplateCard.tsx +++ b/frontend/src/components/scripts/TemplateCard.tsx @@ -1,6 +1,5 @@ import { ShieldAlert } from 'lucide-react' import { cn } from '@/lib/utils' -import { useScriptGeneratorStore } from '@/store/scriptGeneratorStore' import type { ScriptTemplateListItem } from '@/types' const COMPLEXITY_CLASSES: Record = { @@ -11,23 +10,15 @@ const COMPLEXITY_CLASSES: Record = interface Props { template: ScriptTemplateListItem + onConfigure: (id: string) => void } -export function TemplateCard({ template }: Props) { - const selectedTemplate = useScriptGeneratorStore(s => s.selectedTemplate) - const selectTemplate = useScriptGeneratorStore(s => s.selectTemplate) - const isActive = selectedTemplate?.id === template.id - +export function TemplateCard({ template, onConfigure }: Props) { return ( - - + ) }