import { useState } from 'react' import { ChevronDown } from 'lucide-react' const FormatSelect: React.FC = () => { const [format, setFormat] = useState([ 'GGUF', 'ONNX', 'TensorRT-LLM', ]) const checkBoxes = ['GGUF', 'ONNX', 'TensorRT-LLM'] const [show, setShow] = useState(false) return (
{show && (
{checkBoxes.map((item) => (
{ if (e.target.checked) { setFormat([...format, item]) } else { setFormat(format.filter((f) => f !== item)) } }} />
))}
)}
) } export default FormatSelect