File size: 438 Bytes
1ad4e76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { Button, Typography } from "@mui/material";

export default function DimensionButton({ dimension, onClick, isPressed }) {
  return (
    <>
      <Button
        variant= {isPressed ? "contained" : "outlined"}
        color="primary"
        onClick={onClick}
        style={{ margin: "5px", padding: "5px 10px", minWidth: "auto" }}
      >
        <Typography variant="h6">{dimension}</Typography>
      </Button>
    </>
  );
}