Const
Component that displays the reward amount with optional formatting. Must be used within a Reward.Root component.
<Reward.Root id="11155111:0x...:1">
// With render prop
<Reward.Amount
abbreviated={true}
withSymbol={true}
fallback="No reward available"
>
{(incentive) => <div>{incentive.rewardAmount}</div>}
</Reward.Amount>
// With standard display
<Reward.Amount
abbreviated={true}
withSymbol={true}
fallback="No reward available"
/> // 9.62K SOL
</Reward.Root>
Component that displays the reward amount with optional formatting. Must be used within a Reward.Root component.
<Reward.Root id="11155111:0x...:1">
// With render prop
<Reward.Amount
abbreviated={true}
withSymbol={true}
fallback="No reward available"
>
{(incentive) => <div>{incentive.rewardAmount}</div>}
</Reward.Amount>
// With standard display
<Reward.Amount
abbreviated={true}
withSymbol={true}
fallback="No reward available"
/> // 9.62K SOL
</Reward.Root>
Component that displays the USD value of the reward. Must be used within a Reward.Root component.
Component that displays the reward token's image. Must be used within a Reward.Root component.
Compound component for displaying reward information. Provides a namespace for all reward-related components.