summaryrefslogtreecommitdiffstats
path: root/docusaurus/src/components/ButtonLink.tsx
blob: 5fd69e11bb443e246cd86544e7b7e71fece3f4a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: AGPL-3.0-or-later */

import Button from "@mui/material/Button";
import Link from "@docusaurus/Link";
import React from "react";

export default ({
  to = "",
  text = "",
}: Readonly<{
  to: string;
  text: string;
}>): React.JSX.Element => (
  <p>
    <Link to={to}>
      <Button size="large" sx={{ textTransform: "capitalize" }}>
        <strong>{text}</strong>
        &nbsp; »
      </Button>
    </Link>
  </p>
);

// Typography - MUI System
// https://mui.com/system/typography/

// Docusaurus Client API | Docusaurus
// https://docusaurus.io/docs/docusaurus-core#link