2024-12-10 02:37:04 +07:00
|
|
|
import '../../css/customButton.css'
|
2024-12-11 15:35:36 +07:00
|
|
|
import { useNavigate } from 'react-router-dom';
|
2024-12-10 02:37:04 +07:00
|
|
|
|
2024-12-11 15:35:36 +07:00
|
|
|
function BlackButton({ text , to="/"}) {
|
|
|
|
const navigate = useNavigate();
|
2024-12-10 02:37:04 +07:00
|
|
|
|
2024-12-11 15:35:36 +07:00
|
|
|
return(
|
|
|
|
<button className='gray' onClick={()=> navigate(to, { replace: true })}>{text}</button>
|
|
|
|
)
|
|
|
|
}
|
2024-12-10 02:37:04 +07:00
|
|
|
|
|
|
|
export default BlackButton
|