@oxyhq/services
Version:
Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀
35 lines (34 loc) • 928 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _SectionTitle = _interopRequireDefault(require("./SectionTitle"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Section = ({
title,
theme,
children,
isFirst = false,
style
}) => {
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
style: [styles.section, isFirst && styles.firstSection, style],
children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SectionTitle.default, {
title: title,
theme: theme
}), children]
});
};
const styles = _reactNative.StyleSheet.create({
section: {
marginBottom: 10
},
firstSection: {
marginTop: 8
}
});
var _default = exports.default = Section;
//# sourceMappingURL=Section.js.map