summaryrefslogtreecommitdiff
path: root/client/src/components/BackButton/BackButton.jsx
blob: fdb85f15fb6cb4ac6583d7c132fdb359b9227b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Typography } from '@mui/material'
import React from 'react'
import styles from './BackButton.module.css'

const BackButton = ({ onClick, onChange }) => {
  return (
    <>
      <button
        onClick={onClick}
        className={styles.submit}
        type="submit"
        onChange={onChange}
      >
        <div className={styles.submit__content}>
          <img
            className={styles.submit__image}
            src={`${process.env.PUBLIC_URL}/assets/images/back.svg`}
            alt=""
          />
          <Typography sx={{ fontSize: '1.5rem', fontWeight: 'bolder', margin: '10px', color: '#323c7a' }}>Back</Typography>
        </div>
      </button>
    </>
  )
}

export default BackButton