import { useLichessUser } from "#/context/LichessUserContext.tsx"; import { useLichess } from "#/hooks/useLichess.ts"; const LichessButton = () => { const { lichessLogin, lichessLogout } = useLichess(); const { user } = useLichessUser(); const onClickHandler = () => { return user ? lichessLogout() : lichessLogin(); }; return ( ); }; export default LichessButton;