import React, { useState } from 'react'; import { FormattedMessage } from 'react-intl'; import { useSelector } from 'react-redux'; import classNames from 'classnames'; import Link from 'components/common/Link'; import Icon from 'components/common/Icon'; import LanguageButton from 'components/settings/LanguageButton'; import ThemeButton from 'components/settings/ThemeButton'; import UpdateNotice from 'components/common/UpdateNotice'; import UserButton from 'components/settings/UserButton'; import Button from 'components/common/Button'; import Logo from 'assets/logo.svg'; import styles from './Header.module.css'; import useLocale from 'hooks/useLocale'; import { rtlLocales } from 'lib/lang'; import XMark from 'assets/xmark.svg'; import Bars from 'assets/bars.svg'; export default function Header() { const user = useSelector(state => state.user); const [active, setActive] = useState(false); const [locale] = useLocale(); function handleClick() { setActive(state => !state); } return ( ); }