// @flow import React from 'react'; import { Form, FormField } from 'component/common/form'; import Button from 'component/button'; import Card from 'component/common/card'; import { setSavedPassword } from 'util/saved-passwords'; type Props = { getSync: (?string) => void, getSyncIsPending: boolean, }; function SyncPassword(props: Props) { const { getSync, getSyncIsPending } = props; const [password, setPassword] = React.useState(''); const [rememberPassword, setRememberPassword] = React.useState(true); function handleSubmit() { if (rememberPassword) { setSavedPassword(password); } getSync(password); } return (
); } export default SyncPassword;