17 lines
325 B
TypeScript
17 lines
325 B
TypeScript
|
import Link from "next/link";
|
||
|
|
||
|
type ButtonProps = {
|
||
|
title: string;
|
||
|
url: string;
|
||
|
};
|
||
|
|
||
|
export function RedirectButton({ title, url }: ButtonProps) {
|
||
|
return (
|
||
|
<div className="w-fit rounded-lg">
|
||
|
<Link href={url}>
|
||
|
<p className="hover:text-primary transition-all">{title}</p>
|
||
|
</Link>
|
||
|
</div>
|
||
|
);
|
||
|
}
|