import { type FC } from "react"; import SquareIcon from "@/assets/icons/square.svg"; import CircleIcon from "@/assets/icons/circle.svg"; import TriangleIcon from "@/assets/icons/triangle.svg"; import StarIcon from "@/assets/icons/Star.svg"; import { Switch } from "@/components/ui/switch"; import { clx } from "@/helpers/utils"; import { useShapeStore, type ShapeType } from "@/pages/editor/store/shapeStore"; const shapeOptions: Array<{ id: ShapeType; label: string; icon: string; alt: string }> = [ { id: "square", label: "مربع", icon: SquareIcon, alt: "square" }, { id: "circle", label: "دایره", icon: CircleIcon, alt: "circle" }, { id: "triangle", label: "مثلث", icon: TriangleIcon, alt: "triangle" }, { id: "abstract", label: "انتزاعی", icon: StarIcon, alt: "abstract" }, ]; const RectangleInstruction: FC = () => { const { activeShape, setActiveShape, useAsMask, setUseAsMask } = useShapeStore(); return (

اشکال

{shapeOptions.map((shape) => { const isActive = activeShape === shape.id; return ( ); })}
استفاده برای ماسک
); }; export default RectangleInstruction;