help button

This commit is contained in:
Gabe Yuan
2023-09-08 21:57:42 +08:00
parent 441a2ca2da
commit 345a34287e
3 changed files with 25 additions and 19 deletions

View File

@@ -0,0 +1,19 @@
import Button from "@mui/material/Button";
import { useI18n } from "../../hooks/I18n";
import HelpIcon from "@mui/icons-material/Help";
export default function HelpButton({ url }) {
const i18n = useI18n();
return (
<Button
size="small"
variant="outlined"
onClick={() => {
window.open(url, "_blank");
}}
startIcon={<HelpIcon />}
>
{i18n("help")}
</Button>
);
}