"use client";
import { ark } from "../factory.js";
import { useColorPickerContext } from "./use-color-picker-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/color-picker/color-picker-format-select.tsx
var ColorPickerFormatSelect = forwardRef((props, ref) => {
	const mergedProps = mergeProps(useColorPickerContext().getFormatSelectProps(), props);
	return /* @__PURE__ */ jsx(ark.select, {
		...mergedProps,
		ref,
		children: [
			"rgba",
			"hsla",
			"hsba"
		].map((format) => /* @__PURE__ */ jsx(ark.option, {
			value: format,
			children: format
		}, format))
	});
});
ColorPickerFormatSelect.displayName = "ColorPickerFormatSelect";
//#endregion
export { ColorPickerFormatSelect };
