@xcelsior/ui-chat 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1268,6 +1268,7 @@ import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-run
1268
1268
  function BookingSlotPicker({ data, theme, onSlotSelected, disabled = false }) {
1269
1269
  const [selectedDateIndex, setSelectedDateIndex] = useState6(0);
1270
1270
  const [selectedSlot, setSelectedSlot] = useState6(null);
1271
+ if (!data?.availableDates?.length) return null;
1271
1272
  const bgColor = theme?.background || "#00001a";
1272
1273
  const isLightTheme = (() => {
1273
1274
  if (!bgColor.startsWith("#")) return false;