import PropTypes from "prop-types"; import React from "react"; import ErrProtecter from "../../utils/errProtect"; import "./JDLabel.scss"; type IProps = { txt: string | JSX.Element; } const JDLabel = ({txt}: IProps) => {txt}; JDLabel.propTypes = { txt: PropTypes.string.isRequired }; export default ErrProtecter(JDLabel);