2023-06-26 10:07:12 +00:00
|
|
|
"use client";
|
|
|
|
|
|
2022-12-02 10:55:56 +00:00
|
|
|
import { FC } from "react";
|
|
|
|
|
import Link from "next/link";
|
|
|
|
|
import { Button as MUIButton } from "@mui/material";
|
|
|
|
|
|
|
|
|
|
interface ButtonProps {
|
|
|
|
|
text: string;
|
|
|
|
|
color: string;
|
|
|
|
|
href: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const Button: FC<ButtonProps> = ({ text, color, href }) => (
|
|
|
|
|
<Link href={href} passHref>
|
|
|
|
|
<MUIButton
|
|
|
|
|
variant="contained"
|
|
|
|
|
disableElevation
|
|
|
|
|
sx={{
|
|
|
|
|
fontFamily: "Poppins, sans-serif",
|
|
|
|
|
fontWeight: 700,
|
2023-07-17 12:23:12 +00:00
|
|
|
borderRadius: 2,
|
2022-12-02 10:55:56 +00:00
|
|
|
backgroundColor: color,
|
|
|
|
|
padding: "6px 30px",
|
|
|
|
|
margin: "20px 0px",
|
|
|
|
|
whiteSpace: "nowrap",
|
2023-07-17 12:23:12 +00:00
|
|
|
textTransform: "none",
|
2022-12-02 10:55:56 +00:00
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{text}
|
|
|
|
|
</MUIButton>
|
|
|
|
|
</Link>
|
|
|
|
|
);
|