import toast from 'react-hot-toast' import { ActionButton } from './ActionButton' import { openExternalBrowserIfDesktop } from 'lib/openWindow' export function ToastUpdate({ version, onRestart, }: { version: string onRestart: () => void }) { return (
v{version} A new update has downloaded and will be available next time you start the app. You can view the release notes{' '} here on GitHub.
Restart app now { toast.dismiss() }} > Got it
) }