import { useState } from "react"; import "./index.css"; export default function RewindPage() { const [currentScreenShotBase64, setScreenShotData] = useState(null); window.api.receive("fromMain", (message: string) => { setScreenShotData(message); }); return ( <>
{currentScreenShotBase64 && ( )} {currentScreenShotBase64 ? (
Here's a screenshot captured just now.
The relavant features has not been implemented, and you han hit Esc to quit this window.
Meow! ヽ(=^・ω・^=)丿
) : (
Now capturing a screenshot for your screen...(ง •̀_•́)ง
)}
); }