3 lines
127 B
JavaScript
3 lines
127 B
JavaScript
|
export default function getMainAxisFromPlacement(placement) {
|
||
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
||
|
}
|