
$path = "src\App.jsx"
$absPath = Convert-Path $path
Write-Host "Editing: $absPath"
$content = [System.IO.File]::ReadAllText($absPath, [System.Text.Encoding]::UTF8)
$content = $content.Replace("import documentTemplateConfig from './configs/documentTemplateConfig';", "import documentTemplateConfig from './configs/documentTemplateConfig';`r`nimport DocumentTemplateManager from './components/DocumentTemplateManager';")
$content = $content.Replace("const DocumentTemplateManager = ({ onNavigate }) => {", "const OldDocumentTemplateManager = ({ onNavigate }) => {")
[System.IO.File]::WriteAllText($absPath, $content, [System.Text.Encoding]::UTF8)
Write-Host "Success"
