36 lines
623 B
TypeScript
Raw Normal View History

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:41:42 +00:00
// const debug = {
// test: 'hey'
// }
2023-06-29 11:41:42 +00:00
// return null
2023-06-29 11:40:35 +00:00
2023-06-29 11:41:12 +00:00
return (
<Flex maxW='100%' pb={40}>
2023-06-29 11:41:42 +00:00
<Thingtime thing={demoThing}></Thingtime>
2023-06-29 11:41:12 +00:00
</Flex>
)
}