From 64b38348d43040aba9823003b28acbb906e8a7d7 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sun, 14 May 2023 21:33:04 -0300 Subject: feat(plugins): Permissions Viewer (#477) Co-authored-by: V --- src/components/Icons.tsx | 40 ++++++++++++++++++++++++++++++++++++---- src/components/iconStyles.css | 4 ++++ 2 files changed, 40 insertions(+), 4 deletions(-) (limited to 'src/components') diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx index d1cc7a6..4227fce 100644 --- a/src/components/Icons.tsx +++ b/src/components/Icons.tsx @@ -19,27 +19,28 @@ import "./iconStyles.css"; import { classes } from "@utils/misc"; -import type { PropsWithChildren } from "react"; +import { i18n } from "@webpack/common"; +import type { PropsWithChildren, SVGProps } from "react"; interface BaseIconProps extends IconProps { viewBox: string; } -interface IconProps { +interface IconProps extends SVGProps { className?: string; height?: number; width?: number; } -function Icon({ height = 24, width = 24, className, children, viewBox }: PropsWithChildren) { +function Icon({ height = 24, width = 24, className, children, viewBox, ...svgProps }: PropsWithChildren) { return ( @@ -114,3 +115,34 @@ export function ImageIcon(props: IconProps) { ); } + +export function InfoIcon(props: IconProps) { + return ( + + + + ); +} + +export function OwnerCrownIcon(props: IconProps) { + return ( + + + + ); +} diff --git a/src/components/iconStyles.css b/src/components/iconStyles.css index 9f2ef8e..ca4075d 100644 --- a/src/components/iconStyles.css +++ b/src/components/iconStyles.css @@ -1,3 +1,7 @@ .vc-open-external-icon { transform: rotate(45deg); } + +.vc-owner-crown-icon { + color: var(--text-warning); +} -- cgit