| Server IP : 145.239.37.162 / Your IP : 216.73.217.81 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www_old/wp-content/plugins/envato-elements/src/js/react/components/Grid/ |
Upload File : |
import React from 'react'
import styles from './GridItem.module.scss'
const GridItem = ({ colWidthPercentage = 20, children, className, ...rest }) => {
const gridItemClasses = [styles.item]
if (colWidthPercentage === 20) {
gridItemClasses.push(styles.widthTwenty)
}
if (colWidthPercentage === 25) {
gridItemClasses.push(styles.widthTwentyFive)
}
if (colWidthPercentage === 33) {
gridItemClasses.push(styles.widthThirtyThree)
}
if (colWidthPercentage === 40) {
gridItemClasses.push(styles.widthFourty)
}
if (colWidthPercentage === 50) {
gridItemClasses.push(styles.widthFifty)
}
if (colWidthPercentage === 60) {
gridItemClasses.push(styles.widthSixty)
}
if (colWidthPercentage === 100) {
gridItemClasses.push(styles.widthFull)
}
if (className) {
gridItemClasses.push(className)
}
return (
<div className={gridItemClasses.join(' ')} {...rest}>
{children}
</div>
)
}
export default GridItem