add motd to the server page
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 56s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 56s
This commit is contained in:
@ -3,12 +3,13 @@ import Link from "next/link";
|
||||
type ButtonProps = {
|
||||
title: string;
|
||||
url: string;
|
||||
openInNewTab?: boolean;
|
||||
};
|
||||
|
||||
export function RedirectButton({ title, url }: ButtonProps) {
|
||||
export function RedirectButton({ title, url, openInNewTab }: ButtonProps): JSX.Element {
|
||||
return (
|
||||
<div className="w-fit rounded-lg">
|
||||
<Link href={url} target="_blank">
|
||||
<Link href={url} target={openInNewTab ? "_blank" : ""}>
|
||||
<p className="hover:text-primary transition-all">{title}</p>
|
||||
</Link>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user