2021-12-14 00:41:10 +01:00
import React from 'react' ;
2023-02-16 20:23:29 +01:00
import NftDetails from './nft-details' ;
2021-12-14 00:41:10 +01:00
2023-02-16 20:23:29 +01:00
const nft = {
2022-06-30 17:46:38 +02:00
name : 'Catnip Spicywright' ,
tokenId : '1124157' ,
address : '0x06012c8cf97bead5deae237070f9587f8e7a266d' ,
image : './catnip-spicywright.png' ,
2023-02-02 19:26:36 +01:00
imageThumbnail : 'https://www.cryptokitties.co/.../1124157' ,
2022-06-30 17:46:38 +02:00
description :
"Good day. My name is Catnip Spicywight, which got me teased a lot in high school. If I want to put low fat mayo all over my hamburgers, I shouldn't have to answer to anyone about it, am I right? One time I beat Arlene in an arm wrestle." ,
2023-02-02 19:26:36 +01:00
lastSale : {
event _timestamp : '2023-01-18T21:51:23' ,
total _price : '4900000000000000' ,
} ,
2022-06-30 17:46:38 +02:00
} ;
2021-12-14 00:41:10 +01:00
export default {
2023-02-16 20:23:29 +01:00
title : 'Components/App/NftsDetail' ,
2023-01-20 20:27:46 +01:00
2021-12-14 00:41:10 +01:00
argTypes : {
2023-02-16 20:23:29 +01:00
nft : {
2021-12-14 00:41:10 +01:00
control : 'object' ,
} ,
} ,
2022-06-30 17:46:38 +02:00
args : {
2023-02-16 20:23:29 +01:00
nft ,
2022-06-30 17:46:38 +02:00
} ,
2021-12-14 00:41:10 +01:00
} ;
2022-06-30 17:46:38 +02:00
export const DefaultStory = ( args ) => {
2023-02-16 20:23:29 +01:00
return < NftDetails { ... args } / > ;
2021-12-14 00:41:10 +01:00
} ;
DefaultStory . storyName = 'Default' ;
2022-06-30 17:46:38 +02:00
export const NoImage = ( args ) => {
2023-02-16 20:23:29 +01:00
return < NftDetails { ... args } / > ;
2022-06-30 17:46:38 +02:00
} ;
NoImage . args = {
2023-02-16 20:23:29 +01:00
nft : {
... nft ,
2022-06-30 17:46:38 +02:00
image : undefined ,
} ,
2021-12-14 00:41:10 +01:00
} ;