import { getValueAndOnChange, useSettings } from "renderer/settings"; import { Common, Util } from "../vencord"; import "./settings.css"; const { Margins } = Util; export default function SettingsUi() { const Settings = useSettings(); const { Forms: { FormSection, FormText, FormDivider, FormSwitch, FormTitle }, Text, Select, Button } = Common; const switches: [keyof typeof Settings, string, string, boolean?][] = [ ["minimizeToTray", "Minimize to tray", "Hitting X will make Vencord Desktop minimize to the tray instead of closing", true], ["disableMinSize", "Disable minimum window size", "Allows you to make the window as small as your heart desires"], ["openLinksWithElectron", "Open Links in app (experimental)", "Opens links in a new Vencord Desktop window instead of your web browser"], ]; return ( Vencord Desktop Settings Discord Branch