dumi-theme-lobehub
Version:
dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui
19 lines • 650 B
JavaScript
import { Features as F } from '@lobehub/ui/awesome';
import { useTheme } from 'antd-style';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { heroSelectors, useSiteStore } from "../../store";
import { jsx as _jsx } from "react/jsx-runtime";
var Features = /*#__PURE__*/memo(function () {
var features = useSiteStore(heroSelectors.features, isEqual);
var theme = useTheme();
if (!(features !== null && features !== void 0 && features.length)) return;
return /*#__PURE__*/_jsx(F, {
items: features,
maxWidth: theme.contentMaxWidth,
style: {
margin: '0 16px'
}
});
});
export default Features;