import React, { useState } from "react"; import RegularDropDown from "./RegularDropDown"; type LabledDropdownProps = { defaultOption: string; // Initial active option options: string[]; // Array of dropdown options }; const LabledDropdown: React.FC = ({ defaultOption, options }) => { const [activeOption, setActiveOption] = useState(defaultOption); // State for active option const handleSelect = (option: string) => { setActiveOption(option); // Update the active option state }; return (
Type
); }; export default LabledDropdown;