import IconButton from '@material-ui/core/IconButton' import CloseIcon from '@material-ui/icons/Close' import { useState } from 'react' import { useTranslation } from 'react-i18next' import IOSShareIcon from './IOSShareIcon' import { StyledWrapper, StyledHeader, StyledContent } from './style' export function PWAInstallationGuide() { const pwaNotificationIsClosed = JSON.parse(localStorage.getItem('pwaNotificationIsClosed')) const [isOpen, setIsOpen] = useState(!pwaNotificationIsClosed) const [shouldBeOpened, setShouldBeOpened] = useState(!pwaNotificationIsClosed) const { t } = useTranslation() if (!isOpen) return null return ( ts-icon {t('PWAGuide.Header')} { setShouldBeOpened(false) setTimeout(() => { setIsOpen(false) localStorage.setItem('pwaNotificationIsClosed', true) }, 300) }} >

{t('PWAGuide.Description')}

{t('PWAGuide.VLC')}

1. {t('PWAGuide.FirstStep')}

2. {t('PWAGuide.SecondStep.Select')} {t('PWAGuide.SecondStep.AddToHomeScreen')}

) }