import { useEffect } from 'react' import { Col, Row } from 'react-bootstrap' import { useTranslation } from 'react-i18next' import getMeta from '@/utils/meta' import { useLocation } from '@/shared/hooks/use-location' import GroupInvitesItem from './group-invites-item' import type { TeamInvite } from '../../../../../../types/team-invite' function GroupInvites() { const { t } = useTranslation() const teamInvites: TeamInvite[] = getMeta('ol-teamInvites') const location = useLocation() useEffect(() => { if (teamInvites.length === 0) { location.assign('/project') } }, [teamInvites, location]) return (

{t('group_invitations')}

{teamInvites.map(teamInvite => ( ))}
) } export default GroupInvites