import React, { useState } from 'react' import { Switch } from '@headlessui/react' import { classNames } from '../../src/utils/class-names' export default function Home() { let [state, setState] = useState(false) return (
Enable notifications classNames( 'relative inline-flex flex-shrink-0 h-6 border-2 border-transparent rounded-full cursor-pointer w-11 focus:outline-none focus:shadow-outline transition-colors ease-in-out duration-200', checked ? 'bg-indigo-600' : 'bg-gray-200' ) } > {({ checked }) => ( <> )}
) }