VencordPlus/RemovedPlusPlugins/notesSearcher/components/NotesDataButton.tsx
RobinRMC 9d150b6c69
Remove NotesSearcher, SkypeStartupSound, VoiceChannelLog & VoiceJoinMessages
Removed plugins will be put in a dedicated directory from now on.
2024-09-07 00:41:03 +02:00

25 lines
751 B
TypeScript

/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { LazyComponent } from "@utils/react";
import { findExportedComponentLazy } from "@webpack";
import { React } from "@webpack/common";
import { NotesDataIcon } from "./Icons";
import { openNotesDataModal } from "./NotesDataModal";
const HeaderBarIcon = findExportedComponentLazy("Icon", "Divider");
export const OpenNotesDataButton = LazyComponent(() => React.memo(() => {
return (
<HeaderBarIcon
className="vc-notes-searcher-toolbox-button"
onClick={() => openNotesDataModal()}
tooltip={"View Notes"}
icon={NotesDataIcon}
/>
);
}));