UNPKG

@logicflow/dumi-theme-simple

Version:
28 lines 751 B
import React from 'react'; import { Space, Divider, Typography } from 'antd'; import styles from "./CodeHeader.module.less"; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; var Title = Typography.Title; /** * 组件的 header */ export var CodeHeader = function CodeHeader(_ref) { var title = _ref.title, relativePath = _ref.relativePath, githubUrl = _ref.githubUrl; return /*#__PURE__*/_jsxs("div", { className: styles.codeHeader, children: [/*#__PURE__*/_jsx(Title, { level: 4, style: { margin: 0 }, children: title }), /*#__PURE__*/_jsx(Space, { split: /*#__PURE__*/_jsx(Divider, { type: "vertical" }) })] }); };