Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
base
/
components
/
dropdown-selector
:
selected-chip.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { __, sprintf } from '@wordpress/i18n'; import { RemovableChip } from '@woocommerce/base-components/chip'; const DropdownSelectorSelectedChip = ( { onRemoveItem, option } ) => { return ( <RemovableChip className="wc-block-dropdown-selector__selected-chip wc-block-components-dropdown-selector__selected-chip" removeOnAnyClick={ true } onRemove={ () => { onRemoveItem( option.value ); } } ariaLabel={ sprintf( /* translators: %s is referring to the filter option being removed. */ __( 'Remove %s filter', 'woocommerce' ), option.name ) } text={ option.label } radius="large" /> ); }; export default DropdownSelectorSelectedChip;