import { Col, H3, LoadingSpinner, Row, Text, Button } from '@tlon/indigo-react'; import Modal from 'components/L2/Modal'; import { ReactComponent as InviteIcon } from 'assets/invite.svg'; import { InviteGeneratingStatus } from '../../views/Invite/useInvites'; import BodyPane from './Window/BodyPane'; interface CreatingInvitesModalProps { status: InviteGeneratingStatus; current: number; total: number; error?: string; hide: () => void; } export const CreatingInvitesModal = ({ status, current, total, hide, error, }: CreatingInvitesModalProps) => { const successfulInvites = current > 1 ? current - 1 : 0; return ( {status === 'generating' && ( Updating Invite {current}/{total}... )} {status === 'finished' && ( <> All Invites Updated The planets you selected are re-ticketed and appear as new invitation links under each star. )} {status === 'errored' && ( <>

There was an error while updating your invites:

{error && ( {error} )} {!!successfulInvites && ( At least {successfulInvites} planet {successfulInvites > 1 ? 's' : ''} were successfully re-ticketed and appear as new invitation links under each star. )} )}
); };