import { memo } from 'react' import { GrClose, GrExpand } from 'react-icons/gr' import { FilterDropdown } from './filters' const Top = ({ onClick, open, feedExist, clearFeed, }: { onClick(x: any): any open: boolean feedExist?: boolean clearFeed(): any }) => { const closeFeed = () => onClick(!open) return (

Recent

{feedExist ? ( ) : null}
) } // re-render on state change for toggling click event export const FeedTopSection = memo(Top)