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 ( - - + ) }