diff --git a/src/InstructionMenu.tsx b/src/InstructionMenu.tsx new file mode 100644 index 0000000..875c10c --- /dev/null +++ b/src/InstructionMenu.tsx @@ -0,0 +1,47 @@ +import { Card, styled, Typography } from "@mui/material" +import React from "react" +import instructions from "./Instructions" +import Tooltip, { TooltipProps, tooltipClasses } from "@mui/material/Tooltip" + +const HtmlTooltip = styled(({ className, ...props }: TooltipProps) => ( + +))(({ theme }) => ({ + [`& .${tooltipClasses.tooltip}`]: { + backgroundColor: "#f5f5f9", + color: "rgba(0, 0, 0, 0.87)", + maxWidth: 220, + fontSize: theme.typography.pxToRem(12), + border: "1px solid #dadde9" + } +})) + +export default function InstructionMenu() { + let key = 0 + + return ( + <> +
+ {instructions.map((instruction) => { + return ( +
+ + {instruction.name.toUpperCase()} + {instruction.description} + + }> + + + {instruction.symbol} + + + +
+ ) + })} +
+ + ) +}