import React from 'react'; import { useServerSessionReplaced } from '../utils/serverSession'; /** * The stale-tab prompt (packages/ui/utils/serverSession.ts): shown once a * decision was refused with `409 session_mismatch`, i.e. the Plannotator * session this tab was opened for is gone and a newer one owns the address. * Nothing was submitted; reloading shows what is open there now. */ export const ServerSessionReplacedBanner: React.FC<{ onReload?: () => void }> = ({ onReload }) => { const replaced = useServerSessionReplaced(); if (!replaced) return null; return (