Record.tsx 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import * as React from 'react';
  2. import { Link } from 'react-router-dom';
  3. import { IconButton } from './button';
  4. import ReturnIcon from "../icons/return.svg";
  5. const RecordApp: React.FC = () => {
  6. const [account, setAccount] = React.useState('');
  7. const [password, setPassword] = React.useState('');
  8. return (
  9. <div>
  10. <div style={{ padding: '14px 20px', borderBottom: '1px solid rgba(0, 0, 0, 0.1)', display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
  11. <div>
  12. <div style={{ fontSize: 20, fontWeight: 'bolder' }}>
  13. 建科招聘聊天记录
  14. </div>
  15. <div style={{ fontSize: 14 }}>
  16. 输入账号密码导出聊天记录
  17. </div>
  18. </div>
  19. <div>
  20. <Link to='/'>
  21. <IconButton
  22. icon={<ReturnIcon />}
  23. bordered
  24. title='返回'
  25. aria='返回'
  26. />
  27. </Link>
  28. </div>
  29. </div>
  30. <div style={{ width: '100%', padding: '20px 0', display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
  31. <input
  32. style={{ width: '50%' }}
  33. type="text"
  34. placeholder="请输入账号"
  35. value={account}
  36. onChange={(e) => {
  37. const value = e.target.value;
  38. setAccount(value);
  39. }}
  40. />
  41. <input
  42. style={{ width: '50%', margin: '20px 0' }}
  43. type="password"
  44. placeholder="请输入密码"
  45. value={password}
  46. onChange={(e) => {
  47. const value = e.target.value;
  48. setPassword(value);
  49. }}
  50. />
  51. <button
  52. style={{
  53. width: '50%',
  54. border: '1px solid rgba(0, 0, 0, 0.1)',
  55. backgroundColor: '#FFFFFF',
  56. borderRadius: '10px',
  57. height: 36,
  58. cursor: 'pointer'
  59. }}
  60. onClick={() => {
  61. console.log(account, password);
  62. }}
  63. >
  64. 导出
  65. </button>
  66. </div>
  67. </div>
  68. );
  69. };
  70. export default RecordApp;