Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

1018 B
Raw Blame
// Shown in the browser tab whose page went on to the desktop app (native/desktop/openInDesktop.ts): where it went, the link
// again, and the way to stay here.
import { useT } from '@linedesk/i18n/react'
import { brandName } from '../../brand.ts'
import { AuthPage, Button } from '../../ui/kit.tsx'
import { stayInBrowser } from './openInDesktop.ts'

export function OpenedInDesktopPage({ link }: { link: string }) {
  const t = useT()
  const brand = brandName()
  const stay = () => {
    stayInBrowser()
    window.location.reload()
  }
  return (
    <AuthPage>
      <div className="auth-card">
        <h1>{t('shell.desktop.openedTitle', { brand })}</h1>
        <p className="auth-note">{t('shell.desktop.openedText', { brand })}</p>
        <Button variant="primary" size="lg" onClick={stay}>
          {t('shell.desktop.openHere')}
        </Button>
        <a className="auth-switch auth-more" href={link}>
          {t('shell.desktop.openAgain', { brand })}
        </a>
      </div>
    </AuthPage>
  )
}