import { Alert, AlertDescription, AlertTitle } from "@repo/ui/composites"; import { Button } from "@repo/ui/primitives"; import { useToolcraftPersistenceStatus } from "./use-toolcraft-persistence"; export function ToolcraftPersistenceConflictNotice() { const status = useToolcraftPersistenceStatus(); if (status.status !== "failed" || status.reason !== "stale-snapshot") { return null; } return ( Saving paused Another tab changed this workspace. Your changes remain in this tab. Reloading opens the saved workspace and discards this tab's unsaved changes. ); }