import classNames from "@calcom/ui/classNames"; export function CellWithOverflowX({ children, className, }: { children: React.ReactNode; className?: string; }) { return (
{ // Only add shadow if the scroll width is greater than 200px if (!el) return; const nextElement = el.nextElementSibling; if (!nextElement) return; if (el.scrollWidth > 200) { nextElement.classList.remove("hidden"); } else { nextElement.classList.add("hidden"); } }}> {children}
); }