import Link from 'next/link'; import styled from 'styled-components'; import intl from 'react-intl-universal'; import { NavButton } from '../NavButton'; import { useRouter } from 'next/router'; import { Badge } from 'antd'; import { useEffect } from 'react'; import _ from 'lodash'; const StyledFooter = styled.div` position: fixed; z-index: 9; bottom: -1px; width: 100%; padding: 0; background-color: rgba(255, 255, 255, 0.65); backdrop-filter: blur(12px); justify-content: space-around; display: none; max-height: 60px; .ant-badge { .ant-badge-count { margin-top: 4px !important; right: 0 !important; box-shadow: none; } } @media (max-width: 968px) { max-height: fit-content; display: flex; left: 0; } @media (max-width: 526px) { &.hide-footer { display: none; } } `; const Footer = ({ notifications, classList }: { notifications?: any; classList?: any }) => { const router = useRouter(); const currentPathName = router.pathname ?? ''; return ( <> {/* */} item && _.isNil(item.readAt)).length} overflowCount={9} offset={[notifications?.length < 10 ? 0 : 5, 8]} color="var(--color-primary)" > ); }; export default Footer;