2023-01-05 21:33:45 +00:00
|
|
|
import { IconProp } from '@fortawesome/fontawesome-svg-core'
|
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
|
|
|
import React, { ReactElement } from 'react'
|
2023-01-03 20:20:08 +00:00
|
|
|
|
2023-01-05 21:33:45 +00:00
|
|
|
export default function SubmitButton ({ faIcon, label, id }: {
|
|
|
|
faIcon: IconProp
|
|
|
|
label: string
|
|
|
|
id?: string
|
2023-01-03 20:20:08 +00:00
|
|
|
}): ReactElement {
|
2023-01-05 21:33:45 +00:00
|
|
|
return <button type={'submit'} className={'btn btn-primary'} id={id}>
|
2023-01-03 20:20:08 +00:00
|
|
|
<FontAwesomeIcon icon={faIcon}/>
|
|
|
|
<span>{label}</span>
|
|
|
|
</button>
|
|
|
|
}
|