import React from 'react' import { Modal, ModalClose, Button } from '@janhq/joi' import { Share2Icon } from '@radix-ui/react-icons' import { useAtom } from 'jotai' import { updateVersionErrorAtom } from '@/helpers/atoms/App.atom' const UpdatedFailedModal = () => { const [error, setError] = useAtom(updateVersionErrorAtom) return ( setError(undefined)} title="Unable to Install Update" content={

An error occurred while installing Jan{' '} {error}. We appreciate your help with{' '} manual downloading and installation.

setError(undefined)}> { window.open( 'https://github.com/menloresearch/jan#download', '_blank' ) setError(undefined) }} >
} /> ) } export default UpdatedFailedModal