32 lines
701 B
TypeScript
32 lines
701 B
TypeScript
import { useAppSelector } from "redux/hooks";
|
|
|
|
interface BackIconType {
|
|
className?: string;
|
|
onClick?: () => void;
|
|
}
|
|
|
|
const BackIcon = ({ className, onClick }: BackIconType) => {
|
|
const { themeName } = useAppSelector((state) => state.theme);
|
|
return (
|
|
<svg
|
|
width="16"
|
|
height="16"
|
|
viewBox="0 0 16 16"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
className={className}
|
|
onClick={onClick}
|
|
>
|
|
<path
|
|
d="M10 12L6 8L10 4"
|
|
stroke={themeName === "dark" ? "#ffffff" : "rgba(95, 108, 123, 1)"}
|
|
strokeWidth="1.5"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
/>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default BackIcon;
|