import React from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { Link } from 'react-router-dom'; import GroupCard from 'soapbox/components/group-card'; import ScrollableList from 'soapbox/components/scrollable-list'; import { Column, Stack, Text } from 'soapbox/components/ui'; import { usePendingGroups } from 'soapbox/queries/groups'; import PlaceholderGroupCard from '../placeholder/components/placeholder-group-card'; const messages = defineMessages({ label: { id: 'groups.pending.label', defaultMessage: 'Pending Requests' }, }); export default () => { const intl = useIntl(); const { groups, isLoading } = usePendingGroups(); const renderBlankslate = () => ( ); return ( {groups.map((group) => ( ))} ); };