import { FC } from 'react' export type V1ImportData = { name?: string status: string projectId: string } export const V1ImportDataScreen: FC<{ v1ImportData: V1ImportData }> = ({ v1ImportData, }) => { return (

{v1ImportData.status === 'mustLogin' ? 'Please log in' : 'Overleaf v1 Project'}

The new V2 editor. {v1ImportData.status === 'cannotImport' && (

Cannot Access Overleaf v1 Project

Please contact the project owner or{' '} contact support for assistance.

)} {v1ImportData.status === 'mustLogin' && (

You will need to log in to access this project.

)} {v1ImportData.status === 'canDownloadZip' && (

{v1ImportData.name || 'This project'} has not yet been moved into the new version of Overleaf. This project was created anonymously and therefore cannot be automatically imported. Please download a zip file of the project and upload that to continue editing it. If you would like to delete this project after you have made a copy, please contact support.

)}
) }