Welcome to mirror list, hosted at ThFree Co, Russian Federation.
1 2 3
export default function getMainAxisFromPlacement(placement) { return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y'; }