summaryrefslogtreecommitdiff
path: root/client/src/components/SubmitButton/SubmitButton.jsx
blob: df1269f061b81f4882327132b5022c7eb8c0b502 (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
28
import React from 'react'
import styles from './SubmitButton.module.css'
import { Typography } from '@mui/material'

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

export default SubmitButton