import { useState } from 'react'; import { useConnectionStore } from '../../store/connectionStore'; import type { SupportType } from '../../types/connection'; import { SteelDatabaseModal, type SteelShape } from '../SteelDatabaseModal'; export const SupportInput = () => { const { support, setSupport, materials, setMaterials } = useConnectionStore(); const [isModalOpen, setIsModalOpen] = useState(false); const supportTypes: { value: SupportType; label: string }[] = [ { value: 'column-flange', label: 'Column flange' }, { value: 'hss-column', label: 'HSS Column' }, { value: 'column-web', label: 'Column web' }, { value: 'hss-beam', label: 'HSS Beam' }, { value: 'beam-web', label: 'Beam web' }, ]; const handleShapeSelect = (shape: SteelShape) => { setSupport({ designation: shape.designation, d: shape.d, tw: shape.tw, tf: shape.tf, bf: shape.bf, }); }; return ( <>