Server IP : 104.21.14.103 / Your IP : 3.144.17.193 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/base/components/title/ |
Upload File : |
/** * External dependencies */ import classNames from 'classnames'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import './style.scss'; /** * Component that renders a block title. */ const Title = ( { children, className, headingLevel, ...props } ) => { const buttonClassName = classNames( 'wc-block-components-title', className ); const TagName = `h${ headingLevel }`; return ( <TagName className={ buttonClassName } { ...props }> { children } </TagName> ); }; Title.propTypes = { headingLevel: PropTypes.oneOf( [ '1', '2', '3', '4', '5', '6' ] ) .isRequired, className: PropTypes.string, children: PropTypes.node, }; export default Title;