mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
26 lines
983 B
TypeScript
26 lines
983 B
TypeScript
import { RelationshipStatusInfoMessageParser } from '@nitrots/nitro-renderer';
|
|
import { FC } from 'react';
|
|
import { LocalizeText } from '../../api';
|
|
import { RelationshipsContainerView } from './RelationshipsContainerView';
|
|
|
|
interface FriendsContainerViewProps
|
|
{
|
|
relationships: RelationshipStatusInfoMessageParser;
|
|
friendsCount: number;
|
|
}
|
|
|
|
export const FriendsContainerView: FC<FriendsContainerViewProps> = props =>
|
|
{
|
|
const { relationships = null, friendsCount = null } = props;
|
|
|
|
return (
|
|
<div className="flex flex-col gap-1">
|
|
<p className="text-sm" dangerouslySetInnerHTML={{ __html: LocalizeText('extendedprofile.friends.count', ['count'], [friendsCount.toString()]) }} />
|
|
<div className="flex flex-col gap-1">
|
|
<p className="text-sm font-bold">{ LocalizeText('extendedprofile.relstatus') }</p>
|
|
<RelationshipsContainerView relationships={ relationships } />
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|