import type { FC } from '../../../../lib/teact/teact'; import React, { memo } from '../../../../lib/teact/teact'; import { STICKER_SIZE_PASSCODE } from '../../../../config'; import { LOCAL_TGS_URLS } from '../../../common/helpers/animatedAssets'; import useLang from '../../../../hooks/useLang'; import useHistoryBack from '../../../../hooks/useHistoryBack'; import Button from '../../../ui/Button'; import AnimatedIconWithPreview from '../../../common/AnimatedIconWithPreview'; import lockPreviewUrl from '../../../../assets/lock.png'; type OwnProps = { onStart: NoneToVoidFunction; isActive?: boolean; onReset: () => void; }; const SettingsPasscodeStart: FC = ({ isActive, onReset, onStart, }) => { const lang = useLang(); useHistoryBack({ isActive, onBack: onReset }); return (

When you set up an additional passcode, a lock icon will appear on the chats page. Tap it to lock and unlock your Telegram WebA.

Note: if you forget your local passcode, you'll need to log out of Telegram WebA and log in again.

); }; export default memo(SettingsPasscodeStart);