import { SelectProps } from '@/components/Select';
import { Select as SelectSrc } from '@/index';

export default {
  title: 'components',
  args: {
    label: 'Upload your image',
    width: 200,
    options: [
      { name: 'option1', value: 1 },
      { name: 'option2', value: 2 },
    ],
  },
};

export const Select: React.FC<SelectProps> = ({ label, width, options }) => {
  return (
    <SelectSrc
      label={label}
      width={width}
      options={options}
      onChange={() => {
        // to do
      }}
      usei18={false}
    />
  );
};
