PHP Classes

File: src/components/page-partials/SelectedItem.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/page-partials/SelectedItem.tsx   Download  
File: src/components/page-partials/SelectedItem.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 579 bytes
 

Contents

Class file image Download
/** * External dependencies */ import { __ } from '@wordpress/i18n'; interface ISelectedItem { checked: Array<any>; } const SelectedItem: React.FC<ISelectedItem> = ({ checked }) => { return ( <span className="ml-2"> <b className="mr-2">{checked.length}</b> <span className="mr-2"> {checked.length > 1 ? __('items', 'jobplace') : __('item', 'jobplace')}{' '} {__('selected', 'jobplace')} </span> </span> ); }; export default SelectedItem;