import React, { forwardRef } from 'react'; import { Link } from 'react-router-dom'; import GroupAvatar from 'soapbox/components/groups/group-avatar'; import { HStack, Stack, Text } from 'soapbox/components/ui'; import GroupActionButton from 'soapbox/features/group/components/group-action-button'; import GroupMemberCount from 'soapbox/features/group/components/group-member-count'; import GroupPrivacy from 'soapbox/features/group/components/group-privacy'; import type { Group } from 'soapbox/schemas'; interface IGroup { group: Group width?: number } const GroupGridItem = forwardRef((props: IGroup, ref: React.ForwardedRef) => { const { group, width = 'auto' } = props; return (
{group.header && ( Group cover )}
); }); export default GroupGridItem;