All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.js.components.UserPopover.es.js Maven / Gradle / Ivy

There is a newer version: 2.0.121
Show 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 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' )}

} >

{Liferay.Language.get('posts')}: {statistics?.postsNumber}

{`${Liferay.Language.get('join-date')}: ${ statistics ? dateToBriefInternationalHuman(statistics.joinDate) : '' }`}

{`${Liferay.Language.get('last-post-date')}: ${ statistics ? dateToBriefInternationalHuman( statistics.lastPostDate ) : '' }`}

); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy