import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { Box, Button, Grid, Typography, useTheme } from '@mui/material'; import { RoboSatsTextIcon } from '../../components/Icons'; import { FastForward, RocketLaunch, Key } from '@mui/icons-material'; import { genBase62Token } from '../../utils'; import { type UseFederationStoreType, FederationContext } from '../../contexts/FederationContext'; import { type UseGarageStoreType, GarageContext } from '../../contexts/GarageContext'; import { useNavigate } from 'react-router-dom'; import { type UseAppStoreType, AppContext } from '../../contexts/AppContext'; interface WelcomeProps { setView: (state: 'welcome' | 'onboarding' | 'recovery' | 'profile') => void; width: number; setInputToken: (state: string) => void; } const Welcome = ({ setView, width, setInputToken }: WelcomeProps): JSX.Element => { const { setPage } = useContext(AppContext); const { t } = useTranslation(); const navigate = useNavigate(); const theme = useTheme(); const { setOpen } = useContext(AppContext); const { garage } = useContext(GarageContext); const { federation } = useContext(FederationContext); return ( {t('A Simple and Private LN P2P Exchange')} {t('Create a new robot and learn to use RoboSats')} {t('Recover an existing robot using your token')} ); }; export default Welcome;