import { Box, Card, CardActionArea, CardContent, CardMedia, Tooltip, Typography, } from "@mui/material"; import { css, Theme } from "@mui/material/styles"; import NextLink, { LinkProps } from "next/link"; import { memo, ReactNode } from "react"; export type Props = { icon: ReactNode; title: string; description: string; disabled?: boolean; } & Pick; const cardStyle = css` text-align: left; width: 160px; height: 300px; `; const cardActionArea = css` height: 100%; `; const cardMedia = (theme: Theme) => css` text-align: center; padding: ${theme.spacing(4)}; `; const cardMediaIconWrapper = (theme: Theme) => css` padding: ${theme.spacing(2)}; height: 96px; > * { width: 100%; height: 100%; } `; const cardContent = css` padding-top: 0; `; const cardTitle = css` font-size: 14px; font-weight: 500; `; const cardDescription = (theme: Theme) => css` font-size: 12px; color: ${theme.palette.grey[600]}; `; const StyledComponent = ({ icon, title, description, href, disabled }: Props) => { const card = ( {icon} {title} {description} ); return disabled ? ( {card} ) : ( card ); }; export const Component = memo(StyledComponent); export default Component;