packageDocumentation module import * as React from "react" ; import makeInput , { RenderProps } from "../../../modules/components/inputProvider" ; import PasswordInput , { PropsPassword } from "../../../modules/components/input-controls/Password" ; import { isTruthy } from "../../../modules/utils/assert" ; import { password$ , setPassword , } from "../../../modules/streams/authentication" ; export const [ InputProvider , isValid$ , state$ ] = makeInput ( { name : "password" , isValid : isTruthy , update : setPassword , value$ : password$ , } ) ; const Password = ( props ) => { return ( < InputProvider > { providedProps => ( < PasswordInput { ... providedProps } { ... props } />)} < /InputProvider>); } ; export default Password ;