import { I18N_BOOKING_STATUS_BUCKET_COMPLETED, I18N_BOOKING_STATUS_BUCKET_NO_SHOW, I18N_BOOKING_STATUS_BUCKET_ON_SITE } from "../reservationConstants.js";
import BucketButtonGroup from "./BucketButtonGroup.js";
import React, { useMemo } from "react";
import { locales } from "@pisell/utils";
//#region src/plus/pisellReservation/components/ReservationBookingStatusButtonFilter.tsx
function ReservationBookingStatusButtonFilter(props) {
	const buckets = useMemo(() => [
		{
			id: "on_site",
			label: locales.getText(I18N_BOOKING_STATUS_BUCKET_ON_SITE),
			keys: ["arrived", "started"]
		},
		{
			id: "no_show",
			label: locales.getText(I18N_BOOKING_STATUS_BUCKET_NO_SHOW),
			keys: ["no_show"]
		},
		{
			id: "completed",
			label: locales.getText(I18N_BOOKING_STATUS_BUCKET_COMPLETED),
			keys: ["completed"]
		}
	], []);
	return /* @__PURE__ */ React.createElement(BucketButtonGroup, {
		value: props.value,
		onChange: props.onChange,
		buckets
	});
}
//#endregion
export { ReservationBookingStatusButtonFilter as default };
