'use client';
import { type ReactElement } from 'react';
import {
Container,
VStack,
HStack,
useColorMode,
IconButton,
} from '@chakra-ui/react';
import { useWallet, WalletButton } from '@vechain/vechain-kit';
import { TransactionExamples } from '@/app/components/features/TransactionExamples';
import { SigningExample } from '@/app/components/features/Signing/SigningExample';
import { LuMoon, LuSun } from 'react-icons/lu';
import { FeaturesToTry } from '@/app/components/features/FeaturesToTry/FeaturesToTry';
import { DataReadingExample } from '../components/features/DataReading';
import { LoginUIControl } from '../components/features/LoginUIControl/LoginUIControl';
import { LoginToContinueBox } from '../components/features/LoginToContinueBox';
import { LanguageDropdown } from '../components/layout/Header';
import { useTranslation } from 'react-i18next';
export default function Home(): ReactElement {
const { account } = useWallet();
const { colorMode, toggleColorMode } = useColorMode();
const { t } = useTranslation();
if (!account) {
return (
) : (
)
}
aria-label="Toggle color mode"
borderRadius="xl"
/>
);
}
return (
:
}
aria-label="Toggle color mode"
borderRadius="xl"
/>
);
}