Creates a tap handler to flip our Swich's state.
import * as React from "react"
import { Frame } from "framer"
export function Switch(props) {
const [state, setState] = React.useState({
isOn: false,
})
const flipSwitch = () => {
setState({
isOn: !state.isOn,
})
}
return (
<Frame size="100%"/>
)
}