{"size": 664, "ext": "js", "max_stars_repo_path": "admin/src/components/FieldUI/Description.js", "max_stars_repo_name": "Koptelnya/strapi-plugin-k-editorjs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "admin/src/components/FieldUI/Description.js", "max_issues_repo_name": "Koptelnya/strapi-plugin-k-editorjs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "admin/src/components/FieldUI/Description.js", "max_forks_repo_name": "Koptelnya/strapi-plugin-k-editorjs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.6666666667, "max_line_length": 85, "alphanum_fraction": 0.6777108434}
import PropTypes from "prop-types";
import React from "react";
import {isEmpty} from "lodash";
import {InputDescription} from "strapi-helper-plugin";

const WysiwigDescription = ({inputDescription}) => {
    const descriptionStyle = !isEmpty(inputDescription) ? {marginTop: "1.4rem"} : {};

    return <InputDescription message={inputDescription} style={descriptionStyle} />;
};

WysiwigDescription.propTypes = {
    inputDescription: PropTypes.oneOfType([
        PropTypes.string,
        PropTypes.func,
        PropTypes.shape({
            id: PropTypes.string,
            params: PropTypes.object,
        }),
    ]),
};

export default WysiwigDescription;
