14 lines
443 B
TypeScript
14 lines
443 B
TypeScript
import Select, { ISelectProps } from '@/components/select';
|
|
import { GENDER_OPTIONS, GenderType } from '@/constants/material';
|
|
|
|
interface IProps extends Omit<ISelectProps<GenderType>, 'options'> {
|
|
value: GenderType;
|
|
}
|
|
|
|
function GenderSelect(props: IProps) {
|
|
const { value: selectValue, onSelect } = props;
|
|
return <Select options={GENDER_OPTIONS} title="性别" value={selectValue} onSelect={onSelect} />;
|
|
}
|
|
|
|
export default GenderSelect;
|