WhiteNightsAdminPanel/src/shared/ui/BackButton/index.tsx

14 lines
306 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { MoveLeft } from "lucide-react";
import { useNavigate } from "react-router-dom";
export const BackButton = () => {
const navigate = useNavigate();
return (
<button className="flex items-center gap-2" onClick={() => navigate(-1)}>
<MoveLeft />
Назад
</button>
);
};