import * as React from "react"
import { storiesOf } from "@storybook/react"
import { ThemeProvider } from "styled-components"
import { theme } from "../../../"
import Adore from "../components/ButtonAdore"
import { compose, withProps } from "recompose"
import * as Button from "../../../components/Button"
const ButtonAdoreWithData = compose(
withProps((props) => {
return {
callSaveAdore: (count) => {
const url: string =
"http://localhost:3007/asset/heart/episode/eatmeagain007/" + count
console.log(url)
// await fetch(url, {
// method: 'PUT',
// headers: {
// 'Content-Type': 'application/json'
// },
// })
}
}
})
)(Adore) as any
storiesOf("Adore", module)
.addDecorator((story) => (