Spaces:
Sleeping
Sleeping
new project
Browse filesFiles changed (2)
135 unmodified lines136137138139140141142135 unmodified linesreturn (<div className="h-screen bg-gray-950 font-sans overflow-hidden"><Header onReset={() => setHtml(defaultHTML)}><DeployButton html={html} error={error} auth={auth} /></Header><main className="max-lg:flex-col flex w-full">135 unmodified lines136137138139140141142143144145146147148149150151152153154155156157158159135 unmodified linesreturn (<div className="h-screen bg-gray-950 font-sans overflow-hidden"><HeaderonReset={() => {if (isAiWorking) {toast.warn("Please wait for the AI to finish working.");return;}if (window.confirm("You're about to reset the editor. Are you sure?")) {setHtml(defaultHTML);setError(false);removeHtmlStorage();editorRef.current?.revealLine(editorRef.current?.getModel()?.getLineCount() ?? 0);}}}><DeployButton html={html} error={error} auth={auth} /></Header><main className="max-lg:flex-col flex w-full">
9 unmodified lines1011121314151617181920218 unmodified lines303132333435369 unmodified linesonReset: () => void;children?: ReactNode;}) {const handleConfirm = () => {if (window.confirm("You're about to reset the editor. Are you sure?")) {onReset();}};return (<header className="border-b border-gray-900 px-3 lg:px-6 py-2 flex justify-between items-center"><div className="flex items-center justify-start gap-3">8 unmodified lines<p className="text-gray-700 max-md:hidden">|</p><buttonclassName="max-md:hidden relative cursor-pointer flex-none flex items-center justify-center rounded-md text-xs font-semibold leading-4 py-1.5 px-3 hover:bg-gray-700 text-gray-100 shadow-sm dark:shadow-highlight/20 bg-gray-800"onClick={handleConfirm}><MdAdd className="mr-1 text-base" />New9 unmodified lines1011121314158 unmodified lines242526272829309 unmodified linesonReset: () => void;children?: ReactNode;}) {return (<header className="border-b border-gray-900 px-3 lg:px-6 py-2 flex justify-between items-center"><div className="flex items-center justify-start gap-3">8 unmodified lines<p className="text-gray-700 max-md:hidden">|</p><buttonclassName="max-md:hidden relative cursor-pointer flex-none flex items-center justify-center rounded-md text-xs font-semibold leading-4 py-1.5 px-3 hover:bg-gray-700 text-gray-100 shadow-sm dark:shadow-highlight/20 bg-gray-800"onClick={onReset}><MdAdd className="mr-1 text-base" />New
src/components/App.tsx+18-1
src/components/header/header.tsx+1-7