* components changes * feat(UpdaterTab): redesign * feat(BackupTab): redesign * feat(PatchTab): minor changes * feat(ChangelogTab): minor changes * feat(EquicordTab): minor changes * t * L * bruh * t * framework * t * fixes * hell je * Revert "hell je" This reverts commit 3f3134249c690cb50887ed6ee371790e6d4fd262. * fixes * fix fix --------- Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
29 lines
793 B
TypeScript
29 lines
793 B
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2025 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import "./Link.css";
|
|
|
|
import { classes } from "@utils/misc";
|
|
import type { AnchorHTMLAttributes, PropsWithChildren } from "react";
|
|
|
|
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
disabled?: boolean;
|
|
}
|
|
|
|
export function Link({ disabled, className, children, ...restProps }: PropsWithChildren<LinkProps>) {
|
|
return (
|
|
<a
|
|
role="link"
|
|
target="_blank"
|
|
rel="noreferrer noopener"
|
|
className={classes("vc-link", disabled && "vc-link-disabled", className)}
|
|
aria-disabled={disabled}
|
|
{...restProps}
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|