import React, { useState } from "react"; import { storiesOf } from "@storybook/react"; import Story from "../../storybook-components/Story"; import { FormGroup } from "../FormGroup"; import { Input } from "../Input"; import { InputFeedback } from "./InputFeedback"; import { Label } from "../Label"; import { STATUS_VARIANT } from "../../types"; import { Button, BUTTON_VARIANT } from "../Button"; const stories = storiesOf("Components/Forms/Input Feedback", module); stories.add("Within FormGroup", () => { const [showFeedback, setShowFeedback] = useState(true); return ( {showFeedback && ( I see what you did there )} {showFeedback && ( I see what you did there )} {showFeedback && ( I see what you did there )} {showFeedback && ( I see what you did there )} ); });