2023-07-10 00:45:27 +00:00
import React from "react"
import { Flex } from "@chakra-ui/react"
2023-06-28 08:25:17 +00:00
2023-07-10 00:45:27 +00:00
import { Thingtime } from "./Thingtime"
export const ThingtimeDemo = ( props ) = > {
2023-06-28 08:25:17 +00:00
const thing = {
2023-07-10 00:45:27 +00:00
Suggestion : "Press ctrl/cmd + P" ,
Name : "thingtime" ,
2023-07-01 14:13:27 +00:00
Description : `
Thing Time is a versatile online platform that empowers users to organize , customize , and manage different types of data . By generalizing the concept of social media feeds , Thing Time allows users to switch between various data schemas , essentially providing them with personalized feeds and organizational tools . It 's like a combination of Facebook, Twitter, and Evernote, but with the user in control of what kind of data they want to see and manage. Whether it' s social posts , marketplace listings , or personal notes , Thing Time puts the power of data organization and customization in the user ’ s hands .
` ,
2023-07-10 00:45:27 +00:00
"Image URL" : "https://google.com/images" ,
Price : "$100" ,
2023-07-01 14:13:27 +00:00
QTY : 1 ,
ID : 123 ,
Nested : {
2023-06-29 11:06:58 +00:00
data : {
is : {
2023-07-10 00:45:27 +00:00
fun : "Isn't it?" ,
} ,
} ,
2023-07-01 14:13:27 +00:00
} ,
2023-07-10 00:45:27 +00:00
Array : [ "one" , "two" , "three" ] ,
"Array of Objects" : [
2023-07-01 14:13:27 +00:00
{
2023-07-10 00:45:27 +00:00
name : "one" ,
2023-07-01 14:13:27 +00:00
} ,
{
2023-07-10 00:45:27 +00:00
name : "two" ,
2023-07-01 14:13:27 +00:00
} ,
{
2023-07-10 00:45:27 +00:00
name : "three" ,
} ,
2023-07-01 14:39:02 +00:00
] ,
2023-07-10 00:45:27 +00:00
"...unique1" : "I'm unique" ,
"...unique2" : "I'm unique" ,
"...unique3" : "I'm unique" ,
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:39:40 +00:00
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 (
2023-07-10 00:45:27 +00:00
< Flex maxWidth = "100%" paddingBottom = { 40 } >
< Thingtime width = "500px" thing = { demoThing } > < / Thingtime >
2023-06-29 11:41:12 +00:00
< / Flex >
)
2023-06-29 11:39:40 +00:00
}