"use client"; import { cn } from "@app/lib/cn"; import { RadioGroup, RadioGroupItem } from "./ui/radio-group"; import { useState } from "react"; interface StrategyOption { id: string; title: string; description: string; disabled?: boolean; // New optional property } interface StrategySelectProps { options: StrategyOption[]; defaultValue?: string; onChange?: (value: string) => void; cols?: number; } export function StrategySelect({ options, defaultValue, onChange, cols }: StrategySelectProps) { const [selected, setSelected] = useState(defaultValue); return ( { setSelected(value); onChange?.(value); }} className={`grid md:grid-cols-${cols ? cols : 1} gap-4`} > {options.map((option) => ( ))} ); }