import { useReservationResponsiveVariant } from "../../pisellReservation/hooks/useReservationResponsiveVariant";

/**
 * Sales Grid / Sales Management 与预约页对齐的窄视口判定（≤768px）。
 * 复用 {@link useReservationResponsiveVariant} 的 matchMedia 逻辑，避免断点漂移。
 */
export function useSalesGridPhoneLayout() {
  return useReservationResponsiveVariant(undefined) === 'phone';
}