import { clx } from "@medusajs/ui" import { PropsWithChildren } from "react" import { DataGridCellContainerProps } from "../types" export const DataGridCellContainer = ({ isAnchor, isSelected, isDragSelected, showOverlay, placeholder, innerProps, overlayProps, children, }: DataGridCellContainerProps) => { return (
{children}
{showOverlay && (
)}
) } const RenderChildren = ({ isAnchor, placeholder, children, }: PropsWithChildren< Pick >) => { if (!isAnchor && placeholder) { return placeholder } return children }