2023-06-12 14:34:10 -05:00
|
|
|
import { useRouter } from 'next/router'
|
2023-07-24 13:35:05 -05:00
|
|
|
import Button from 'react-bootstrap/Button'
|
2023-06-12 14:34:10 -05:00
|
|
|
|
|
|
|
export default function CancelButton ({ onClick }) {
|
|
|
|
const router = useRouter()
|
|
|
|
return (
|
2024-10-25 17:48:56 -05:00
|
|
|
<Button className='me-3 text-muted nav-link fw-bold' variant='link' onClick={onClick || (() => router.back())}>cancel</Button>
|
2023-06-12 14:34:10 -05:00
|
|
|
)
|
|
|
|
}
|