import React, { useState } from 'react' import Swipe, { Props } from 'siegel-ui/Swipe' import theme from './styles.sass' const Demo = () => { const [ swiped, setSwiped ] = useState(false) let className = theme.swipe_block swiped && (className += ` ${theme.swiped}`) const props: Props = { className, children:
, onSwipe(swiped) { setSwiped(!swiped) } } const horizaontalSwuipeClassName = `${className} ${theme.horizontal}` return <>