lynxkite / lynxkite-app /web /src /workspace /EnvironmentSelector.tsx
darabos's picture
Split LynxKite into several Python packages.
d7ccb5f
raw
history blame
467 Bytes
export default function EnvironmentSelector(props: { options: string[], value: string, onChange: (val: string) => void }) {
return (
<>
<select className="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>
</>
);
}