/** * WordPress dependencies */ import { _x, sprintf } from '@safe-wordpress/i18n'; /** * External dependencies */ import { useIsUserYou, useAuthorName, useSocialProfile, } from '@nelio-content/data'; import { dateI18n, getSettings as getDateSettings } from '@nelio-content/date'; import type { Uuid } from '@nelio-content/types'; export type ProfileCreatorProps = { readonly className?: string; readonly profileId: Uuid; }; export const ProfileCreator = ( { className, profileId, }: ProfileCreatorProps ): JSX.Element | null => { const profile = useSocialProfile( profileId ); const isYou = useIsUserYou( profile?.creatorId ); const creatorName = useAuthorName( profile?.creatorId ); const creationDate = profile?.creationDate; if ( ! profile ) { return null; } if ( isYou ) { return (