"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export interface MigrationBannerProps extends React.HTMLAttributes { title?: string; /** 0-100 */ progress: number; detail?: string; } /** Data migration status banner: progress bar + expandable details. */ export function MigrationBanner({ title = "Migrating data to new system", progress, detail, className, ...props }: MigrationBannerProps) { const [open, setOpen] = React.useState(false); const pct = Math.min(100, Math.max(0, Math.round(progress))); return (

{title}

{pct}% {detail && ( )}
{open && detail && (

{detail}

)}
); }