-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSelectorButton.tsx
49 lines (46 loc) · 1.07 KB
/
SelectorButton.tsx
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { ButtonBase, Typography } from "@mui/material";
import React from "react";
import { SelectorButtonProps } from ".";
// Selector Buttons for scene/upload page
export default function SelectorButton({
icon,
text,
description,
onClick
}: SelectorButtonProps) {
return (
<ButtonBase
onClick={onClick}
sx={theme => ({
"&:hover": {
boxShadow: `0 1px 5px 1px ${theme.palette.action.focus}`
},
alignItems: "center",
background: theme.palette.background.paper,
border: `1px solid ${theme.palette.divider}`,
borderRadius: 4,
display: "flex",
flexDirection: "column",
height: 248,
p: 2,
textAlign: "left",
transition: ".2s ease-in-out",
width: 336
})}
>
{icon}
<Typography
variant="h6"
sx={{
fontWeight: 600,
lineHeight: 1,
mb: 1,
mt: 2
}}
>
{text}
</Typography>
<Typography variant="body2">{description}</Typography>
</ButtonBase>
);
}