bigbuffet-rw/app/soapbox/components/toggle.tsx

15 lines
296 B
TypeScript
Raw Normal View History

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;