META-INF.resources.js.components.UserPopover.es.js Maven / Gradle / Ivy
/**
* 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 ClayPopover from '@clayui/popover';
import React from 'react';
import {dateToBriefInternationalHuman} from '../utils/utils.es';
import UserIcon from './UserIcon.es';
export default function UserPopover({creator, statistics}) {
return (
{statistics?.rank}
{creator?.name ||
Liferay.Language.get(
'anonymous-user-configuration-name'
)}