solana-app-kit


solana-app-kit / components/otherProfile/buyCard/buyCrad / default

Function: default()

default(): Element

Defined in: src/components/otherProfile/buyCard/buyCrad.tsx:33

A card component for purchasing creator coins

Returns

Element

Component

Description

BuyCard is a component that displays information about a creator’s coin and provides purchase functionality. Features include:

  • Creator profile image display
  • Coin name and description
  • Buy button for direct purchase
  • Animated expandable arrow for additional information

The component includes smooth animations for the arrow rotation and maintains its own state for the expanded/collapsed view.

Example

<BuyCard />

Note: Currently uses hardcoded values for the Yash coin. Future iterations could accept props for:

  • Creator information
  • Coin details
  • Buy action callback