Files
est-frame/node_modules/react-bootstrap/esm/helpers.js
2025-10-22 05:38:27 +00:00

14 lines
437 B
JavaScript
Executable File

import * as React from 'react';
export class BsPrefixComponent extends React.Component {}
// Need to use this instead of typeof Component to get proper type checking.
export function getOverlayDirection(placement, isRTL) {
let bsDirection = placement;
if (placement === 'left') {
bsDirection = isRTL ? 'end' : 'start';
} else if (placement === 'right') {
bsDirection = isRTL ? 'start' : 'end';
}
return bsDirection;
}