import React from 'react'; import { motion } from 'framer-motion'; import { UploadIcon } from './Icons'; const CVForm = ({ profileData, photoUrl, resumeFile, isEditing, handlePhotoChange, handleFileChange }) => { const getBaseName = (path) => { if (!path) return 'Existing Resume'; return path.substring(path.lastIndexOf('/') + 1).substring(path.indexOf('_') + 1); }; return (
{resumeFile ? resumeFile.name : getBaseName(profileData?.resume_url)}
{resumeFile ? 'New file selected' : ''}
No resume has been uploaded.
)} {isEditing && (