@conduction/components
Version:
React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)
7 lines (6 loc) • 447 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import * as styles from "./InfoCard.module.css";
import clsx from "clsx";
export const InfoCard = ({ title, content, layoutClassName }) => {
return (_jsxs("div", { className: clsx([layoutClassName && layoutClassName], styles.container), children: [_jsx("span", { className: styles.title, children: title }), _jsx("div", { className: styles.content, children: content })] }));
};