- {presets.map(preset => {
- const actualIndex = allPresets.indexOf(preset);
- const isRenaming = renaming === actualIndex;
- const isSelected = !isRenaming && selectedPreset === actualIndex;
- const date = new Date(preset.timestamp);
- const formattedDate = date.toLocaleDateString(undefined, {
- month: "short",
- day: "numeric",
- year: "numeric"
- });
- const formattedTime = date.toLocaleTimeString(undefined, {
- hour: "2-digit",
- minute: "2-digit"
- });
-
- const commitRename = () => {
- const nextName = renameText.trim();
- if (!nextName) return;
- renamePreset(actualIndex, nextName, section, guildId);
- onUpdate();
- };
-
- return (
-
{
- if (!isRenaming) {
- onLoad(actualIndex);
- }
- }}
- onKeyDown={e => {
- if (!isRenaming && (e.key === "Enter" || e.key === " ")) {
- e.preventDefault();
- onLoad(actualIndex);
- }
- }}
- className={classes(cl("row"), isSelected ? "selected" : "")}
- >
-
- {preset.avatarDataUrl && (
-

- )}
-
- {isRenaming ? (
-
{
- commitRename();
- setRenaming(-1);
- }}
- onKeyDown={e => {
- if (e.key === "Enter") {
- commitRename();
- setRenaming(-1);
- } else if (e.key === "Escape") {
- setRenaming(-1);
- }
- e.stopPropagation();
- }}
- onClick={e => e.stopPropagation()}
- autoFocus
- />
- ) : (
- <>
-
- {preset.name}
-
-
- {formattedDate} at {formattedTime}
-
- >
- )}
-
-
-
-
-
-
- );
- })}
-
- );
-}
diff --git a/src/equicordplugins/profileSets/components/presetManager.tsx b/src/equicordplugins/profileSets/components/presetManager.tsx
deleted file mode 100644
index 74f2c5bc8..000000000
--- a/src/equicordplugins/profileSets/components/presetManager.tsx
+++ /dev/null
@@ -1,290 +0,0 @@
-/*
- * Vencord, a Discord client mod
- * Copyright (c) 2026 Vendicated and contributors
- * SPDX-License-Identifier: GPL-3.0-or-later
- */
-
-import { Button } from "@components/Button";
-import { Heading } from "@components/Heading";
-import { classes } from "@utils/misc";
-import { openModal } from "@utils/modal";
-import { React, SelectedGuildStore, TextInput, useStateFromStores } from "@webpack/common";
-
-import { cl, settings } from "../index";
-import { exportPresets, ImportDecision, importPresets, savePreset } from "../utils/actions";
-import { loadPresetAsPending } from "../utils/profile";
-import { loadPresets, presets, PresetSection, setCurrentPresetIndex } from "../utils/storage";
-import { ImportProfilesModal } from "./confirmModal";
-import { PresetList } from "./presetList";
-
-const PRESETS_PER_PAGE = 5;
-
-type PresetManagerProps = {
- section?: PresetSection;
- guildId?: string;
-};
-
-export function PresetManager({ section, guildId }: PresetManagerProps) {
- const [presetName, setPresetName] = React.useState("");
- const [, forceUpdate] = React.useReducer(x => x + 1, 0);
- const [isSaving, setIsSaving] = React.useState(false);
- const [currentPage, setCurrentPage] = React.useState(1);
- const [pageInput, setPageInput] = React.useState("1");
- const [selectedPreset, setSelectedPreset] = React.useState