import * as React from "react"
import Dropdown from "../Dropdown"
import { withState } from "recompose"
import { storiesOf } from "@storybook/react"
const ProvinceInput = ({ value, setValue }) => {
return (
)
}
const withProvinceData = withState("value", "setValue", "chonburi")
const ProvinceInputwithProvinceData = withProvinceData(ProvinceInput)
class ProvinceInputStateful extends React.Component<{}, { value: string }> {
constructor(props) {
super(props)
this.state = {
value: "bkk"
}
}
public render() {
return (
this.setState({ value })}
/>
)
}
}
storiesOf("Dropdown input", module)
.add("Basic dropdown", () => {
return
})
.add("Dropdown stateful", () => {
return
})