import Select, { ISelectProps } from '@/components/select';
import { JOB_TYPE_SELECT_OPTIONS_WITH_ALL, JobType } from '@/constants/job';

interface IProps extends Omit<ISelectProps<JobType>, 'options'> {
  value: JobType;
}

function TopCategorySelect(props: IProps) {
  const { value: selectValue, onSelect } = props;
  return <Select options={JOB_TYPE_SELECT_OPTIONS_WITH_ALL} title="品类" value={selectValue} onSelect={onSelect} />;
}

export default TopCategorySelect;
