15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
|
import React from 'react';
|
||
|
import ReactToggle, { ToggleProps } from 'react-toggle';
|
||
|
|
||
|
/** Wrapper around react-toggle. */
|
||
|
const Toggle: React.FC<ToggleProps> = ({ icons = false, ...rest }) => {
|
||
|
return (
|
||
|
<ReactToggle
|
||
|
icons={icons}
|
||
|
{...rest}
|
||
|
/>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default Toggle;
|