import * as React from 'react'; import { useTomo } from '../../src'; export default function UserInfoActions() { const { onLogin, onLogout, onUpdateUserInfo } = useTomo(); const [link, setLink] = React.useState(''); const onReset = () => { window.localStorage.clear(); window.sessionStorage.clear(); window.location.href = window.location.origin; }; return (
UserInfo Actions
{link && ( )}
{link &&
{link}
}
); }