feat: icon left to right review

This commit is contained in:
Julien Froidefond
2025-02-22 07:49:14 +01:00
parent d77b3c57d2
commit b208a2aaf6

View File

@@ -7,7 +7,8 @@ import {
LayoutTemplate, LayoutTemplate,
Maximize2, Maximize2,
Minimize2, Minimize2,
ArrowLeftRight, MoveRight,
MoveLeft,
} from "lucide-react"; } from "lucide-react";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
@@ -65,9 +66,11 @@ export const ControlButtons = ({
direction === "ltr" ? "gauche à droite" : "droite à gauche" direction === "ltr" ? "gauche à droite" : "droite à gauche"
})`} })`}
> >
<ArrowLeftRight {direction === "rtl" ? (
className={cn("h-6 w-6 transition-transform", direction === "rtl" && "rotate-180")} <MoveLeft className="h-6 w-6" />
/> ) : (
<MoveRight className="h-6 w-6" />
)}
</button> </button>
<button <button
onClick={(e) => { onClick={(e) => {