META-INF.resources.components.account_selector.Trigger.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.frontend.js
Show all versions of com.liferay.commerce.frontend.js
Liferay Commerce Frontend JS
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
import ClayButton from '@clayui/button';
import ClayIcon from '@clayui/icon';
import {Col, Row} from '@clayui/layout';
import {StatusRenderer} from '@liferay/frontend-data-set-web';
import classnames from 'classnames';
import React from 'react';
import Sticker from './Sticker';
const Trigger = React.forwardRef(
({active, currentAccount, currentOrder, ...props}, ref) => (
{currentAccount ? (
<>
{currentAccount.name}
{currentOrder?.id ? (
<>
{currentOrder.id}
>
) : (
{Liferay.Language.get(
'there-is-no-order-selected'
)}
)}
>
) : (
{Liferay.Language.get('select-account-and-order')}
)}
)
);
export default Trigger;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy