import { RecommendedFollows } from "Const"; import FollowListBase from "Element/FollowListBase"; import { useMemo } from "react"; import { useNavigate } from "react-router-dom"; export default function DiscoverFollows() { const navigate = useNavigate(); const sortedReccomends = useMemo(() => { return RecommendedFollows .sort(a => Math.random() >= 0.5 ? -1 : 1); }, []); return ( <>

Follow some popular accounts

{sortedReccomends.length > 0 && ()} ) }