import React from "react";

import Select, { Props as SelectProps } from "./Select";

type Props = {
  onChange?: (value: string | string[]) => void;
} & Omit<SelectProps, "onSelect">;

const FormSelect = ({ onChange, ...props }: Props) => (
  <Select onSelect={onChange} {...props} />
);
export default FormSelect;
