import { Select } from '@shared/ui'

interface Props {
  label: string
  value: string
  onChange: (v: string) => void
  options: string[]
}

export function NetworkSelect({ label, value, onChange, options }: Props) {
  return (
    <Select
      label={label}
      value={value}
      onChange={onChange}
      options={options.map(o => ({ value: o, label: o }))}
    />
  )
}
