'use client' import { cn } from '../../../utils/cn' import { XmarkIcon } from '../../icons-v2-generated/signs-and-symbols/xmark-icon' import { Button } from '../../ui/button' export interface InviteLinkInvalidModalProps { onBackToLogin: () => void /** Dismiss (X). Defaults to onBackToLogin. */ onClose?: () => void title?: string description?: string backLabel?: string className?: string } /** * Notice shown when an invitation link is expired or invalid. Full-screen dark * backdrop with a single card — pinned to the bottom on mobile, centered from * tablet up; both the X and the button return to login. */ export function InviteLinkInvalidModal({ onBackToLogin, onClose, title = 'Invite link not valid', description = 'This invitation link has expired or is no longer valid. Contact your administrator for a new invitation.', backLabel = 'Back to Login', className, }: InviteLinkInvalidModalProps) { return (
{description}
{/* Action — right half, matching the design */}