import React from 'react';
import Switch from 'antd/es/switch';

import { getPrefixCls } from '../config-provider';
import './index.less';

export default props => {
  const { prefixCls: customizePrefixCls, ...restProps } = props;
  const prefixCls = getPrefixCls('switch', customizePrefixCls);
  return <Switch {...restProps} prefixCls={prefixCls} />;
};
