import ConfigProvider from '../config-provider'; import React, { Component } from 'react'; import cls from 'classnames'; import { Switch as NextSwitch } from '@alifd/next'; import { SwitchProps as NextSwitchProps } from '@alifd/next/types/switch'; import { omitProps } from '../utils/object'; interface SwitchProps extends Omit { size?: 'xs' | 'small' | 'medium'; } class Switch extends Component { render() { const { prefix = 'next-', className, size, ...otherProps } = this.props; if (size === 'xs') { return ( ); } return ( ); } } export default ConfigProvider.config(Switch);