{metadata.data.symbol !== ""
? metadata.data.symbol
: "No Symbol was found"}
{getSaleTypePill(metadata.primarySaleHappened)}
{getIsMutablePill(metadata.isMutable)}
{getCreatorDropdownItems(metadata.data.creators)}
);
}
type Creator = programs.metadata.Creator;
function getCreatorDropdownItems(creators: Creator[] | null) {
const CreatorHeader = () => {
const creatorTooltip =
"Verified creators signed the metadata associated with this NFT when it was created.";
const shareTooltip =
"The percentage of the proceeds a creator receives when this NFT is sold.";
return (
);
}
function getSaleTypePill(hasPrimarySaleHappened: boolean) {
const primaryMarketTooltip =
"Creator(s) split 100% of the proceeds when this NFT is sold.";
const secondaryMarketTooltip =
"Creator(s) split the Seller Fee when this NFT is sold. The owner receives the remaining proceeds.";
return (
);
}
function getIsMutablePill(isMutable: boolean) {
return (
{`${
isMutable ? "Mutable" : "Immutable"
}`}
);
}
function getVerifiedCollectionPill() {
const onchainVerifiedToolTip =
"This NFT has been verified as a member of an on-chain collection. This tag guarantees authenticity.";
return (