mirror of
https://github.com/RobinRMC/VencordPlus.git
synced 2025-05-11 01:45:38 +02:00
25 lines
751 B
TypeScript
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}
|
|
/>
|
|
);
|
|
}));
|