import React, { useState } from 'react'; import { Carousel, Stack, Text } from 'soapbox/components/ui'; import PlaceholderGroupDiscover from 'soapbox/features/placeholder/components/placeholder-group-discover'; import { useSuggestedGroups } from 'soapbox/queries/groups'; import Group from './group'; const SuggestedGroups = () => { const { groups, isFetching } = useSuggestedGroups(); const [groupCover, setGroupCover] = useState(null); return ( Suggested For You {({ width }: { width: number }) => ( <> {isFetching ? ( new Array(20).fill(0).map((_, idx) => (
)) ) : ( groups.map((group) => ( )) )} )}
); }; export default SuggestedGroups;