Spaces:
Running
Running
File size: 522 Bytes
8fe4e41 7d3eca5 a8859a7 8fe4e41 6b67860 a8859a7 8fe4e41 a8859a7 7d3eca5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
export default function EnvironmentSelector(props: {
options: string[];
value: string;
onChange: (val: string) => void;
}) {
return (
<>
<select
className="env-select select w-full max-w-xs"
name="workspace-env"
value={props.value}
onChange={(evt) => props.onChange(evt.currentTarget.value)}
>
{props.options.map((option) => (
<option key={option} value={option}>
{option}
</option>
))}
</select>
</>
);
}
|