![]() 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.corals.io/wp-content/plugins/give/src/Views/Components/ListTable/ |
import styles from './TableCell.module.scss'; import cx from 'classnames'; import {__} from "@wordpress/i18n"; export default function TableCell({className = '', children = null, heading = false}) { if(heading){ return ( <th className={cx(styles.tableCell, styles.tableRowHeader, className)} scope="row"> {children} </th> ); } return ( <td className={cx(styles.tableCell, className)}> {children} </td> ); } export function IdBadge({ id, addClass = '' }){ return ( <div className={cx(styles.idBadge, addClass)}>{id}</div> ); } export function StatusBadge({ className, text}){ return ( <div className={cx(styles.statusBadge, className)}> <p>{text || __('none', 'give')}</p> </div> ); }