import {
Collapse,
Flex,
Image,
MetaHeading,
MetaMaskIcon,
Stack,
Text,
useBoolean,
} from '@metafam/ds';
import { ConnectKitButton } from 'connectkit';
import { useAccount } from 'wagmi';
import LogoImage from '#assets/new_logo_svg.svg';
import { useUser } from '#lib/hooks';
import { MetaLink } from './Link';
import { SwitchNetworkButton } from './SwitchNetworkButton';
export const MetaGameLogo = () => (
);
export const ConnectToProgress: React.FC<{
showNote?: boolean;
showSwitchButton?: boolean;
header?: string;
}> = ({
showNote = false,
showSwitchButton = true,
header = 'Welcome to MetaGame!',
}) => {
const { isConnected, chainId } = useAccount();
const [open, { toggle }] = useBoolean();
const { fetching } = useUser();
if (isConnected && !fetching) {
if (chainId !== 10 && showSwitchButton) {
return (
{header && {header}}
Please switch to to progress
);
}
return null;
}
return (
{header && {header} }
{showNote && (
First things first, make yourself a profile. You’ll need it to
present yourself & your work to the rest of the world. Unlike Web2
profiles, MyMeta profiles are controlled & owned by you alone,
residing on the{' '}
Ceramic network.
)}
{showNote && (
<>
Don't have a wallet yet?
With an{' '}
Ethereum
{' '}
wallet you can be your own bank and control your digital
assets & ID. You will need one to play MetaGame as well as
engage in the wider ecosystem.
We recommend{' '}
MetaMask
.
>
)}
);
};