UNPKG

@bookbox/core

Version:

Bookbox — e-book format

14 lines (13 loc) 351 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLayoutView = void 0; function getLayoutView(props) { if (props.inline) { return 'inline'; } if (props.block) { return 'block'; } return props.position === 'inline' ? 'inline' : 'block'; } exports.getLayoutView = getLayoutView;