import React, { useState } from 'react'; import { State, useStoreState } from 'easy-peasy'; import { ApplicationState } from '@/state/types'; export default () => { const [ isLoading, setIsLoading ] = useState(false); const user = useStoreState((state: State) => state.user.data); if (!user) { return null; } return (

Your new password must be at least 8 characters in length.

); };