import * as React from "react"; import { Input } from "reakit/Input"; import { Button } from "reakit/Button"; export default function InputWithPasswordToggle() { const [inputType, setInputType] = React.useState("password"); const buttonText = inputType === "password" ? "Show" : "Hide"; const handleToggle = () => { setInputType((prevInputType) => prevInputType === "password" ? "text" : "password" ); }; return ( <>