Presupuestador_web/client/src/components/CustomButtons/BackHistoryButton.tsx

16 lines
469 B
TypeScript
Raw Normal View History

2024-07-11 17:43:08 +00:00
import { Button } from "@/ui";
import { t } from "i18next";
import { ChevronLeftIcon } from "lucide-react";
import { useNavigate } from "react-router-dom";
2024-06-11 16:48:09 +00:00
2024-07-11 17:43:08 +00:00
export const BackHistoryButton = () => {
2024-06-11 16:48:09 +00:00
const navigate = useNavigate();
2024-07-03 15:15:52 +00:00
return (
2024-07-11 17:43:08 +00:00
<Button variant='outline' size='icon' className='h-7 w-7' onClick={() => navigate(-1)}>
<ChevronLeftIcon className='w-4 h-4' />
<span className='sr-only'>{t("quotes.common.back")}</span>
2024-06-11 16:48:09 +00:00
</Button>
);
};