You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
516 B
16 lines
516 B
3 years ago
|
import * as React from 'react';
|
||
|
import Select from '../select';
|
||
|
import type { SelectProps } from '../select';
|
||
|
|
||
|
interface MiniOrMiddleSelectInterface extends React.FC<SelectProps> {
|
||
|
Option: typeof Select.Option;
|
||
|
}
|
||
|
|
||
|
const MiniSelect: MiniOrMiddleSelectInterface = props => <Select {...props} size="small" />;
|
||
|
const MiddleSelect: MiniOrMiddleSelectInterface = props => <Select {...props} size="middle" />;
|
||
|
|
||
|
MiniSelect.Option = Select.Option;
|
||
|
MiddleSelect.Option = Select.Option;
|
||
|
|
||
|
export { MiniSelect, MiddleSelect };
|