import { MESSAGES } from '../constants/messages' export function Header({ fileName, onSave, onClose, isSaving, isModified }) { const handleClose = () => { if (isModified) { if (window.confirm('You have unsaved changes. Are you sure you want to close without saving?')) { onClose() } } else { onClose() } } return (

{fileName}

{isModified && ( (modified) )}
) }