diff --git a/src/plugins/messageLinkEmbeds/index.tsx b/src/plugins/messageLinkEmbeds/index.tsx index fcd598a66..97b2a0095 100644 --- a/src/plugins/messageLinkEmbeds/index.tsx +++ b/src/plugins/messageLinkEmbeds/index.tsx @@ -27,22 +27,7 @@ import { classes } from "@utils/misc"; import { Queue } from "@utils/Queue"; import definePlugin, { OptionType } from "@utils/types"; import { findByPropsLazy, findComponentByCodeLazy } from "@webpack"; -import { - Button, - ChannelStore, - Constants, - GuildStore, - Icons, - IconUtils, - MessageStore, - Parser, - PermissionsBits, - PermissionStore, - RestAPI, - Text, - UserStore, - useState -} from "@webpack/common"; +import { Button, ChannelStore, Clickable, Constants, GuildStore, IconUtils, MessageStore, Parser, PermissionsBits, PermissionStore, RestAPI, Text, UserStore, useState } from "@webpack/common"; import { Channel, Message } from "discord-types/general"; import { JSX } from "react"; @@ -55,6 +40,10 @@ const Embed = findComponentByCodeLazy(".inlineMediaEmbed"); const AutoModEmbed = findComponentByCodeLazy(".withFooter]:", "childrenMessageContent:"); const ChannelMessage = findComponentByCodeLazy("childrenExecutedCommand:", ".hideAccessories"); +const ImageWarningIcon = findComponentByCodeLazy("M19.91 14.63a1.06 1.06 0 0 0-1.82"); +const EyeIcon = findComponentByCodeLazy("M22.89 11.7c.07.2.07.4 0 .6C22.27"); +const EyeSlashIcon = findComponentByCodeLazy("M8.18 10.81c-.13.43.36.65"); + const SearchResultClasses = findByPropsLazy("message", "searchResult"); const EmbedClasses = findByPropsLazy("embedAuthorIcon", "embedAuthor", "embedAuthor"); const SpoilerClasses = findByPropsLazy("explicitContentWarning", "explicitContentWarningText", "spoilerContent"); @@ -318,7 +307,7 @@ function Spoiler(props: { children: JSX.Element }) : JSX.Element { > {!visible &&