mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 17:43:08 -04:00
Add in client updater, Notices API
This commit is contained in:
parent
9aaa47ea4e
commit
8161a07dba
20 changed files with 525 additions and 48 deletions
19
src/components/Link.tsx
Normal file
19
src/components/Link.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { React } from "../webpack/common";
|
||||
|
||||
interface Props {
|
||||
href: string;
|
||||
disabled?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export function Link(props: React.PropsWithChildren<Props>) {
|
||||
if (props.disabled) {
|
||||
props.style ??= {};
|
||||
props.style.pointerEvents = "none";
|
||||
}
|
||||
return (
|
||||
<a href={props.href} target="_blank" style={props.style}>
|
||||
{props.children}
|
||||
</a>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue