@pnp/spfx-property-controls
Version:
Reusable property pane controls for SharePoint Framework solutions
20 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const markdown_to_jsx_1 = tslib_1.__importDefault(require("markdown-to-jsx"));
const telemetry = tslib_1.__importStar(require("../../common/telemetry"));
class PropertyPaneMarkdownContentHost extends React.Component {
constructor(props) {
super(props);
telemetry.track('PropertyPaneMarkdownContent', {});
}
render() {
return (React.createElement("div", { className: this.props.className },
this.props.description && this.props.description !== '' &&
React.createElement("div", { dangerouslySetInnerHTML: { __html: this.props.description } }),
React.createElement(markdown_to_jsx_1.default, { options: this.props.markdownProps }, this.props.markdown)));
}
}
exports.default = PropertyPaneMarkdownContentHost;
//# sourceMappingURL=PropertyPaneMarkdownContentHost.js.map