import { useCallback } from 'react'; import { FormattedMessage, useIntl, defineMessages } from 'react-intl'; import { Helmet } from 'react-helmet'; import { Link, Switch, Route, useHistory } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import AccountCircleIcon from '@material-symbols/svg-600/outlined/account_circle.svg?react'; import ArrowRightAltIcon from '@material-symbols/svg-600/outlined/arrow_right_alt.svg?react'; import ContentCopyIcon from '@material-symbols/svg-600/outlined/content_copy.svg?react'; import EditNoteIcon from '@material-symbols/svg-600/outlined/edit_note.svg?react'; import PersonAddIcon from '@material-symbols/svg-600/outlined/person_add.svg?react'; import { focusCompose } from 'flavours/glitch/actions/compose'; import { Icon } from 'flavours/glitch/components/icon'; import Column from 'flavours/glitch/features/ui/components/column'; import { me } from 'flavours/glitch/initial_state'; import { useAppSelector } from 'flavours/glitch/store'; import { assetHost } from 'flavours/glitch/utils/config'; import illustration from 'mastodon/../images/elephant_ui_conversation.svg'; import { Step } from './components/step'; import { Follows } from './follows'; import { Profile } from './profile'; import { Share } from './share'; const messages = defineMessages({ template: { id: 'onboarding.compose.template', defaultMessage: 'Hello #Mastodon!' }, }); const Onboarding = () => { const account = useAppSelector(state => state.getIn(['accounts', me])); const dispatch = useDispatch(); const intl = useIntl(); const history = useHistory(); const handleComposeClick = useCallback(() => { dispatch(focusCompose(history, intl.formatMessage(messages.template))); }, [dispatch, intl, history]); return (

0 && account.get('note').length > 0)} icon='address-book-o' iconComponent={AccountCircleIcon} label={} description={} /> = 1} icon='user-plus' iconComponent={PersonAddIcon} label={} description={} /> = 1} icon='pencil-square-o' iconComponent={EditNoteIcon} label={} description={ }} />} /> } description={} />

); }; export default Onboarding;