'use strict';
'use client';
import { jsx } from 'react/jsx-runtime';
import { cn } from '../../../fd-toolbox/lib/utils.js';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
function List({
  className,
  children,
  itemCount
}) {
  const shouldShowScroll = (itemCount ?? 0) > 8;
  return /* @__PURE__ */jsx("ul", {
    className: cn("px-1", shouldShowScroll ? "max-h-96 overflow-y-scroll" : "max-h-full", className),
    children
  });
}
__name(List, "List");

export { List };
