Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets-rebuild.corals.io/wp-content/plugins/give/src/Views/Components/Card/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets-rebuild.corals.io/wp-content/plugins/give/src/Views/Components/Card/index.js
// Import vendor dependencies
import PropTypes from 'prop-types';
// Import styles
import styles from './style.module.scss';

const Card = ({width = 4, title = null, children = null}) => {
    return (
        <div className={styles.card} style={{gridColumn: 'span ' + width}}>
            {title && <div className={styles.title}>{title}</div>}
            <div className={styles.content}>{children}</div>
        </div>
    );
};

Card.propTypes = {
    // Number of grid columns for Card to span, out of 12
    width: PropTypes.number,
    // Title of card
    title: PropTypes.string,
    // Elements to displayed in content area of card (eg: Chart, List)
    children: PropTypes.node.isRequired,
};

export default Card;

Spamworldpro Mini