This commit is contained in:
Your Name
2025-04-18 09:52:27 -04:00
parent f569bb2240
commit 066bb11814
54 changed files with 1714 additions and 469 deletions
+14
View File
@@ -0,0 +1,14 @@
import React, { useEffect } from 'react';
import { NewTab } from './components/NewTab';
import { useAtom } from 'jotai';
import { backgroundImageState } from './state/backgroundImage.state';
import { IpcService } from './services/ipcService';
export const App: React.FC = () => {
const [backgroundImage] = useAtom(backgroundImageState)
useEffect(() => { document.body.style.backgroundImage = `url(${backgroundImage})` }, [backgroundImage]);
IpcService.writeFile({ path: 'testpath', fileContent: 'testcontent' }).then(console.log)
return <NewTab />;
};