2023-06-29 11:39:40 +00:00
|
|
|
import React from 'react'
|
|
|
|
import { Thingtime } from './Thingtime'
|
2023-06-29 11:41:12 +00:00
|
|
|
import { Flex } from '@chakra-ui/react'
|
2023-06-28 08:25:17 +00:00
|
|
|
|
|
|
|
export const ThingtimeDemo = props => {
|
|
|
|
const thing = {
|
|
|
|
name: 'thing',
|
|
|
|
description: 'thing description',
|
|
|
|
image: 'thing image',
|
|
|
|
price: 100,
|
|
|
|
quantity: 1,
|
2023-06-29 11:06:58 +00:00
|
|
|
id: 1,
|
|
|
|
nested: {
|
|
|
|
data: {
|
|
|
|
is: {
|
|
|
|
fun: "Isn't it?"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-28 08:25:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const [demoThing, setDemoThing] = React.useState(thing)
|
|
|
|
|
2023-06-29 11:39:40 +00:00
|
|
|
const debug = {
|
|
|
|
test: 'hey'
|
|
|
|
}
|
|
|
|
|
2023-06-29 11:40:35 +00:00
|
|
|
return null
|
|
|
|
|
2023-06-29 11:41:12 +00:00
|
|
|
return (
|
|
|
|
<Flex pb={40}>
|
|
|
|
<Thingtime thing={debug}></Thingtime>
|
|
|
|
</Flex>
|
|
|
|
)
|
2023-06-29 11:39:40 +00:00
|
|
|
}
|