UNPKG

@hjkl6/dumi-theme-antv

Version:

[![NPM version](https://img.shields.io/npm/v/@antv/dumi-theme-antv.svg?style=flat)](https://npmjs.org/package/@antv/dumi-theme-antv) [![NPM downloads](http://img.shields.io/npm/dm/@antv/dumi-theme-antv.svg?style=flat)](https://npmjs.org/package/@antv/dumi

20 lines 937 B
import { useSiteData } from 'dumi'; import React from 'react'; import { styled } from 'styled-components'; import { Contributors } from "./Contributors"; import { EditButton } from "./EditButton"; import { PageFeedback } from "./PageFeedback"; import { SectionFeedback } from "./SectionFeedback"; var StyledWrapper = styled.div.withConfig({ displayName: "StyledWrapper", componentId: "dumi-theme-antv-80e8__sc-1jif30j-0" })(["margin-top:40px;"]); export var Feedback = function Feedback() { var _useSiteData = useSiteData(), themeConfig = _useSiteData.themeConfig; var feedback = themeConfig.feedback; if (!feedback) { return null; } return /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(EditButton, null), /*#__PURE__*/React.createElement(Contributors, null), /*#__PURE__*/React.createElement(SectionFeedback, null), /*#__PURE__*/React.createElement(PageFeedback, null)); };