From 195f1a032fc63d4fd35564a9d11f8ed4afbcac4d Mon Sep 17 00:00:00 2001 From: V Date: Wed, 10 May 2023 23:13:47 +0200 Subject: ShowConnections: Add verified & copy/link icons in tooltip (#1092) --- src/components/Icons.tsx | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 src/components/Icons.tsx (limited to 'src/components') diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx new file mode 100644 index 0000000..c3905d9 --- /dev/null +++ b/src/components/Icons.tsx @@ -0,0 +1,83 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2023 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + +import { classes } from "@utils/misc"; +import type { PropsWithChildren } from "react"; + +interface BaseIconProps extends IconProps { + viewBox: string; +} + +interface IconProps { + className?: string; + height?: number; + width?: number; +} + +function Icon({ height = 24, width = 24, className, children, viewBox }: PropsWithChildren) { + return ( + + ); +} + +/** + * Discord's link icon, as seen in the Message context menu "Copy Message Link" option + */ +export function LinkIcon({ height = 24, width = 24, className }: IconProps) { + return ( + + + + + + + ); +} + +/** + * Discord's copy icon, as seen in the user popout right of the username when clicking + * your own username in the bottom left user panel + */ +export function CopyIcon(props: IconProps) { + return ( + + + + + + + ); +} -- cgit