wolfree-dockerfile/docusaurus/src/components/ButtonLink.tsx

29 lines
606 B
TypeScript
Raw Normal View History

2023-09-27 13:34:23 +02:00
/* SPDX-License-Identifier: AGPL-3.0-or-later */
2023-08-11 07:09:24 +02:00
2023-09-27 13:34:23 +02:00
import Button from "@mui/material/Button";
2023-08-11 07:09:24 +02:00
import Link from "@docusaurus/Link";
2023-09-27 13:34:23 +02:00
import React from "react";
2023-08-11 07:09:24 +02:00
2023-09-27 13:34:23 +02:00
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>
2023-08-11 07:09:24 +02:00
);
// Typography - MUI System
// https://mui.com/system/typography/
// Docusaurus Client API | Docusaurus
// https://docusaurus.io/docs/docusaurus-core#link