import { FileCode2, X } from "lucide-react"; import { useUiStore } from "../../stores/uiStore"; /** * Shown when a `.sql` file was opened from the OS but no database connection is * active. The file is already loaded in memory; picking a connection in the * Home screen delivers it (see `useSqlFileOpen`). */ export function PendingSqlFileBanner() { const pending = useUiStore((s) => s.pendingSqlFile); const clear = useUiStore((s) => s.clearPendingSqlFile); if (!pending) return null; return (
{pending.name} is ready — open a connection to use it.
); }