import React, { FC, useContext } from 'react'; import { Button } from 'antd'; import { MenuOutlined } from '@ant-design/icons'; import { observer } from 'mobx-react-lite'; import { Icon, LangSelect } from 'Common/ui'; import Store from 'Store'; import s from './Header.module.pcss'; const Header: FC = observer(() => { const store = useContext(Store); const { ui: { intl }, system, ui } = store; const { status, profile } = system; const updateServerStatus = () => { system.switchServerStatus(!status?.protectionEnabled); }; return (