summaryrefslogtreecommitdiff
path: root/client/src/components/BackButton/BackButton.jsx
blob: ff99eb6b462fef5c810f279c0991d370f7e1f6d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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}
      >
        <img
          className={styles.submit__image}
          src={`${process.env.PUBLIC_URL}/assets/images/back.svg`}
          alt=""
        />
      </button>
    </>
  )
}

export default BackButton