UNPKG

@logicflow/dumi-theme-simple

Version:
34 lines 1.1 kB
import React from 'react'; import { createFromIconfontCN } from '@ant-design/icons'; import { ic } from "../hooks"; import styles from "./FeatureCard.module.less"; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; var FeatureIcon = createFromIconfontCN({ scriptUrl: 'https://cdn.jsdelivr.net/gh/Logic-Flow/static@latest/docs/iconfont/iconfont.js' // self generate }); var FeatureCard = function FeatureCard(_ref) { var icon = _ref.icon, title = _ref.title, description = _ref.description; return /*#__PURE__*/_jsx("div", { className: styles.card, children: /*#__PURE__*/_jsxs("div", { className: styles.content, children: [/*#__PURE__*/_jsx(FeatureIcon, { className: "feature-logo", type: icon, style: { fontSize: 36 } }), /*#__PURE__*/_jsx("p", { className: styles.title, children: ic(title) }), /*#__PURE__*/_jsx("p", { className: styles.description, children: ic(description) })] }) }); }; export default FeatureCard;