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
/
blocks
/
cart-checkout
/
checkout
/
form
:
login-prompt.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { getSetting } from '@woocommerce/settings'; import { useCheckoutContext } from '@woocommerce/base-context'; /** * Internal dependencies */ import { LOGIN_TO_CHECKOUT_URL } from '../utils'; const LoginPrompt = () => { const { customerId } = useCheckoutContext(); if ( ! getSetting( 'checkoutShowLoginReminder', true ) || customerId ) { return null; } return ( <> { __( 'Already have an account? ', 'woocommerce' ) } <a href={ LOGIN_TO_CHECKOUT_URL }> { __( 'Log in.', 'woocommerce' ) } </a> </> ); }; export default LoginPrompt;