import CanvasContext from "./Context/canvasContext/CanvasContext"; import { Button } from "./ui/button"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "./ui/select"; import { useContext } from "react"; const aspectRatios = [ { value: "1:1", label: "Square (1:1)" }, { value: "4:3", label: "Standard (4:3)" }, { value: "3:2", label: "Classic (3:2)" }, { value: "16:9", label: "Widescreen (16:9)" }, { value: "9:16", label: "Portrait (9:16)" }, { value: "21:9", label: "Ultrawide (21:9)" }, { value: "32:9", label: "Super Ultrawide (32:9)" }, { value: "1.85:1", label: "Cinema Standard (1.85:1)" }, { value: "2.39:1", label: "Anamorphic Widescreen (2.39:1)" }, { value: "2.76:1", label: "Ultra Panavision 70 (2.76:1)" }, { value: "5:4", label: "Large Format (5:4)" }, { value: "7:5", label: "Artistic Format (7:5)" }, { value: "11:8.5", label: "Letter Size (11:8.5)" }, { value: "3:4", label: "Portrait (3:4)" }, { value: "1.91:1", label: "Facebook Ads (1.91:1)" }, ]; export function ActionButtons() { const { setCanvasRatio, canvasRatio } = useContext(CanvasContext); const handleRatioChange = (newRatio) => { setCanvasRatio(newRatio); }; return (
); }