You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
438 B
14 lines
438 B
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;
|
|
} |