Equicord/src/plugins/decor/settings.tsx
V 3b9292d3bc
Migrate to Discord's new Modals (#4206)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-10 13:58:48 +02:00

45 lines
1.6 KiB
TypeScript

/*
* Vencord, a Discord client mod
* Copyright (c) 2023 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { definePluginSettings } from "@api/Settings";
import { TextButton } from "@components/Button";
import { Margins } from "@utils/margins";
import { classes } from "@utils/misc";
import { OptionType } from "@utils/types";
import { Forms, SettingsRouter } from "@webpack/common";
import DecorPlugin from ".";
import DecorSection from "./ui/components/DecorSection";
export const settings = definePluginSettings({
changeDecoration: {
type: OptionType.COMPONENT,
component({ closePluginSettings }) {
if (!DecorPlugin.started) return <Forms.FormText>
Enable Decor and restart your client to change your avatar decoration.
</Forms.FormText>;
return <div>
<DecorSection hideTitle hideDivider noMargin />
<Forms.FormText className={classes(Margins.top8, Margins.bottom8)}>
You can also access Decor decorations from the <TextButton
variant="link"
onClick={async () => {
closePluginSettings();
SettingsRouter.openUserSettings("profile_panel");
}}
>Profiles</TextButton> page.
</Forms.FormText>
</div>;
}
},
agreedToGuidelines: {
type: OptionType.BOOLEAN,
description: "Agreed to guidelines",
hidden: true,
default: false
}
});