import { ArrowLeftIcon, ArrowUpRightIcon } from 'lucide-react'
import { motion } from 'motion/react'
import type { ReactNode } from 'react'
import { Button, cn } from 'ui'
interface FullScreenPanelProps {
/** Skips the overlay fade-in, e.g. when the panel is the landing view of a URL. */
skipOverlayFade?: boolean
/** Seconds to delay the content entrance animation by. */
contentDelay?: number
backDisabled?: boolean
onBack: () => void
contentClassName?: string
children: ReactNode
}
/**
* Full screen container used by every step of the plan update flow, so each step
* reads as the same surface rather than a modal stacked on top of another view.
*/
export function FullScreenPanel({
skipOverlayFade = false,
contentDelay = 0,
backDisabled = false,
onBack,
contentClassName,
children,
}: FullScreenPanelProps) {
return (
}
onClick={onBack}
disabled={backDisabled}
className="fixed top-4 left-4 z-10"
>
Back
{children}
)
}
interface PlanUpdateFullScreenShellProps {
organizationName: string | undefined
/** Rendered above the plan cards, outside the scrollable card grid. */
notice: ReactNode
skipOverlayFade: boolean
contentDelay: number
onClose: () => void
children: ReactNode
}
export function PlanUpdateFullScreenShell({
organizationName,
notice,
skipOverlayFade,
contentDelay,
onClose,
children,
}: PlanUpdateFullScreenShellProps) {
return (