UNPKG

tuya-panel-kit

Version:

a functional component library for developing tuya device panels!

20 lines (14 loc) 377 B
import PropTypes from 'prop-types'; import withSkeleton from './withSkeleton'; function CustomPopup({ content }) { return content; } CustomPopup.displayName = 'Custom'; CustomPopup.propTypes = { /** * 自定义内容 */ content: PropTypes.any.isRequired, }; export const CustomModal = withSkeleton(CustomPopup, true); export default withSkeleton(CustomPopup);