Open BillyG83 opened 1 year ago
I can try to create this component using ts
type TextSize = 'body16' | 'body18' | 'caption14' | 'caption12' | 'caption10'; type TextWeight = 'regular' | 'medium' | 'bold'; // Adjust according to your Typography component
interface AddressDisplayProps { address: string; color?: string; textSize?: TextSize; textWeight?: TextWeight; linkUrl?: string; }
use this interface for the type in the AddressDisplay component.
please build this new component 👍
Interface
Result
linkUrl example
https://www.dextools.io/app/en/ether/pair-explorer/0x6c4c7f46d9d4ef6bc5c9e155f011ad19fc4ef321