123456789101112131415 |
- import React from 'react';
- import './index.less';
- import Assets from '@src/components/Assets';
- function Switch(props) {
- const { checked, children } = props;
- return (
- <div className="switch">
- <Assets name={checked ? 'swich_on' : 'swich_off'} />
- {children}
- </div>
- );
- }
- Switch.propTypes = {};
- export default Switch;
|