mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 22:05:11 +00:00
29 lines
617 B
TypeScript
29 lines
617 B
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2025 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { Tooltip } from "@vencord/discord-types";
|
|
|
|
const NOOP = () => { };
|
|
|
|
/** Don't use this */
|
|
export const TooltipFallback: Tooltip = ({ children }) => {
|
|
if (typeof children !== "function") {
|
|
return null;
|
|
}
|
|
|
|
const node = children({
|
|
onBlur: NOOP,
|
|
onFocus: NOOP,
|
|
onMouseEnter: NOOP,
|
|
onMouseLeave: NOOP,
|
|
onClick: NOOP,
|
|
onContextMenu: NOOP
|
|
});
|
|
|
|
return <>{node}</>;
|
|
};
|
|
|
|
TooltipFallback.Colors = {} as any;
|