front-hub/src/pages/Payment/PaymentMethodCard.tsx

31 lines
811 B
TypeScript
Raw Normal View History

2022-11-24 18:08:51 +00:00
import { Box, Typography, useTheme } from "@mui/material";
2022-11-22 14:43:59 +00:00
interface Props {
name: string;
image: any;
}
export default function PaymentMethodCard({ name, image }: Props) {
2022-11-24 18:08:51 +00:00
const theme = useTheme();
2022-11-22 14:43:59 +00:00
return (
<Box
sx={{
width: "237px",
height: "100px",
p: "20px",
pr: "10px",
display: "flex",
borderRadius: "8px",
backgroundColor: "#F2F3F7",
2022-11-24 19:22:30 +00:00
border: `1px solid ${theme.palette.grey2.main}`,
2022-11-22 14:43:59 +00:00
gap: "20px",
alignItems: "center",
}}
>
<img src={image} alt="payment method" />
2022-11-24 19:22:30 +00:00
<Typography sx={{ color: theme.palette.grey3.main }}>{name}</Typography>
2022-11-22 14:43:59 +00:00
</Box>
);
}