"use client"; import { RectangleHorizontal, RectangleVertical } from "lucide-react"; export type AspectRatioValue = | "VIDEO_ASPECT_RATIO_LANDSCAPE" | "VIDEO_ASPECT_RATIO_PORTRAIT"; interface AspectRatioSelectorProps { /** Current selected aspect ratio value */ value: AspectRatioValue; /** Change handler when an option is selected */ onChange: (value: AspectRatioValue) => void; /** Optional className to customize the trigger button */ className?: string; /** Optional dropdown placement, defaults to top */ placement?: "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight"; /** data-alt tag for analytics/testing */ dataAlt?: string; } /** * Aspect ratio selector using Antd Radio.Group with two options: landscape and portrait. * Uses icons as button content and triggers onChange when selection changes. * @param {AspectRatioValue} value - current selected value * @param {(v: AspectRatioValue) => void} onChange - change handler * @param {string} [className] - optional className for wrapper * @param {string} [placement] - kept for backward compatibility (unused) * @param {string} [dataAlt] - data-alt attribute for the wrapper * @returns {JSX.Element} */ export const AspectRatioSelector = ({ value, onChange, className, placement = "top", dataAlt = "config-aspect-ratio", }: AspectRatioSelectorProps) => { return (
); }; export default AspectRatioSelector;