Add supporting themes required for Lotusdocs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// @flow
|
||||
import type { Placement } from '../enums';
|
||||
|
||||
const hash = { start: 'end', end: 'start' };
|
||||
|
||||
export default function getOppositeVariationPlacement(
|
||||
placement: Placement
|
||||
): Placement {
|
||||
return (placement.replace(/start|end/g, matched => hash[matched]): any);
|
||||
}
|
||||
Reference in New Issue
Block a user