import React from "react"; type SaveOutputFolderToggleProps = { rememberOutputFolder: boolean; setRememberOutputFolder: (arg: any) => void; }; export function SaveOutputFolderToggle({ rememberOutputFolder, setRememberOutputFolder, }: SaveOutputFolderToggleProps) { return (

SAVE OUTPUT FOLDER

If enabled, the output folder will be remembered between sessions.

{ setRememberOutputFolder((oldValue) => { if (oldValue === true) { localStorage.removeItem("lastOutputFolderPath"); } return !oldValue; }); localStorage.setItem( "rememberOutputFolder", JSON.stringify(!rememberOutputFolder) ); }} />
); }