mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-13 16:37:58 -05:00
39 lines
810 B
TypeScript
39 lines
810 B
TypeScript
import { ProfileSection } from '#components/Section/ProfileSection';
|
|
import { LinkType_Enum, Player } from '#graphql/autogen/hasura-sdk';
|
|
import { BoxTypes } from '#utils/boxTypes';
|
|
|
|
import { Attestations } from './Attestations';
|
|
|
|
|
|
type Props = {
|
|
player: Player;
|
|
isOwnProfile?: boolean;
|
|
editing?: boolean;
|
|
admin?: boolean;
|
|
onClose?: () => void;
|
|
};
|
|
|
|
export interface PlayerEASInterface {
|
|
name: string;
|
|
url: string;
|
|
type: LinkType_Enum;
|
|
}
|
|
|
|
export const PlayerEAS: React.FC<Props> = ({
|
|
player,
|
|
isOwnProfile,
|
|
editing,
|
|
admin,
|
|
onClose,
|
|
}) => (
|
|
<ProfileSection
|
|
title="Attestations"
|
|
type={BoxTypes.PLAYER_ATTESTATIONS}
|
|
{...{ isOwnProfile, editing }}
|
|
>
|
|
{
|
|
isOwnProfile ? <Attestations player={player} /> : <Attestations player={player} />
|
|
}
|
|
</ProfileSection>
|
|
);
|