with open("App.tsx", "r") as f: content = f.read() # Pass hfTimerQueue properly app_notes_old = """ queue={currentSessionId ? (templateQueue[currentSessionId] || []) : []} onHuggingFaceCue={handleHuggingFaceCue}""" app_notes_new = """ queue={currentSessionId ? (templateQueue[currentSessionId] || []) : []} hfTimerQueue={currentSessionId ? hfTimerQueue[currentSessionId] : undefined} onHuggingFaceCue={handleHuggingFaceCue}""" content = content.replace(app_notes_old, app_notes_new) with open("App.tsx", "w") as f: f.write(content)