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
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
blocks
/
single-product
/
edit
:
api-error.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import ErrorPlaceholder from '@woocommerce/editor-components/error-placeholder'; /** * Shown when there is an API error getting a product. * * @param {Object} props Incoming props for the component. * @param {string} props.error * @param {boolean} props.isLoading * @param {function(any):any} props.getProduct */ const ApiError = ( { error, isLoading, getProduct } ) => ( <ErrorPlaceholder className="wc-block-single-product-error" error={ error } isLoading={ isLoading } onRetry={ getProduct } /> ); export default ApiError;