import { makeStyles } from "@material-ui/core/styles" import { TemplateExample } from "api/typesGenerated" import { FC } from "react" import { Link } from "react-router-dom" import { combineClasses } from "utils/combineClasses" export interface TemplateExampleCardProps { example: TemplateExample className?: string } export const TemplateExampleCard: FC = ({ example, className, }) => { const styles = useStyles() return (
{example.name} {example.description}
) } const useStyles = makeStyles((theme) => ({ template: { border: `1px solid ${theme.palette.divider}`, borderRadius: theme.shape.borderRadius, background: theme.palette.background.paper, textDecoration: "none", textAlign: "left", color: "inherit", display: "flex", alignItems: "center", height: "fit-content", "&:hover": { backgroundColor: theme.palette.background.paperLight, }, }, templateIcon: { width: theme.spacing(12), height: theme.spacing(12), display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, "& img": { height: theme.spacing(4), }, }, templateInfo: { padding: theme.spacing(2, 2, 2, 0), display: "flex", flexDirection: "column", gap: theme.spacing(0.5), overflow: "hidden", }, templateName: { fontSize: theme.spacing(2), textOverflow: "ellipsis", width: "100%", overflow: "hidden", whiteSpace: "nowrap", }, templateDescription: { fontSize: theme.spacing(1.75), color: theme.palette.text.secondary, textOverflow: "ellipsis", width: "100%", overflow: "hidden", whiteSpace: "nowrap", }, }))