Add supporting themes required for Lotusdocs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// @flow
|
||||
import type { Placement } from '../enums';
|
||||
|
||||
export default function getMainAxisFromPlacement(
|
||||
placement: Placement
|
||||
): 'x' | 'y' {
|
||||
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
||||
}
|
||||
Reference in New Issue
Block a user