const r = (t) => {
  const { isClickable: o, onRowClick: i, row: n, rowIndex: l } = t;
  return {
    isClickableClassName: o ? "table-row-clickable" : void 0,
    onClick: o ? () => i?.(n, l) : void 0,
    onKeyDown: o ? (e) => {
      (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i?.(n, l));
    } : void 0,
    tabIndex: o ? 0 : void 0
  };
};
export {
  r as getInteractiveRowProps
};
//# sourceMappingURL=getInteractiveRowProps.js.map
