import { CustomIcon } from './CustomIcon' import Tooltip from './Tooltip' export function RefreshButton() { async function refresh() { if (window && 'plausible' in window) { const p = window.plausible as ( event: string, options?: { props: Record } ) => Promise // Send a refresh event to Plausible so we can track how often users get stuck await p('Refresh', { props: { method: 'UI button', // TODO: add more coredump data here }, }) } // Window may not be available in some environments window?.location.reload() } return ( ) }