import { faPlus } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Center, createStyles, Stack, Text, UnstyledButton, } from "@mantine/core"; import { FunctionComponent } from "react"; const useCardStyles = createStyles((theme) => { return { card: { borderRadius: theme.radius.sm, border: `1px solid ${theme.colors.gray[7]}`, "&:hover": { boxShadow: theme.shadows.md, border: `1px solid ${theme.colors.brand[5]}`, }, }, stack: { height: "100%", }, }; }); interface CardProps { header?: string; description?: string; plus?: boolean; onClick?: () => void; } export const Card: FunctionComponent = ({ header, description, plus, onClick, }) => { const { classes } = useCardStyles(); return ( {plus ? (
) : ( {header} )}
); };