import { useIntl } from "react-intl"; import { _Link } from "react-router"; import { Alert } from "antd"; import { useAppSelector } from "../../hooks"; import { isGuest } from "../../reducers/current-user"; import LoginButton from "./LoginButton"; const LoginAlertWidget = () => { const intl = useIntl(); const guest = useAppSelector(isGuest); return guest === true ? ( } /> ) : ( <> ); }; export default LoginAlertWidget;