From 33bbbfa9d41a182cfc2e8597d6db865f23922246 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 9 Jul 2023 03:23:05 +0200 Subject: [PATCH] Created the Plan.jsx component --- src/pages/Pricing/components/Plan/Plan.jsx | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/pages/Pricing/components/Plan/Plan.jsx diff --git a/src/pages/Pricing/components/Plan/Plan.jsx b/src/pages/Pricing/components/Plan/Plan.jsx new file mode 100644 index 0000000..dcbf243 --- /dev/null +++ b/src/pages/Pricing/components/Plan/Plan.jsx @@ -0,0 +1,34 @@ +import {Box, Grow, Stack, Typography, useTheme} from "@mui/material"; +import {Check, Close} from "@mui/icons-material"; +import LogoDark from "@/common/assets/images/logo/dark.webp"; +import LogoLight from "@/common/assets/images/logo/light.webp"; + +export const Plan = ({name, price, features = {}}) => { + const theme = useTheme(); + const isDarkMode = theme.palette.mode === "dark"; + + return ( + + + + + Logo + {name.toUpperCase()} + + {price} + + + + {Object.entries(features).map(([key, value]) => ( + + {value === false ? + : } + {value} {key} + + ))} + + + + ) +} \ No newline at end of file