@nexara/nativeflow
Version:
Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.
35 lines (34 loc) • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
var _index = require("../../hooks/index.js");
var _index2 = require("../StyledComponents/index.js");
var _jsxRuntime = require("react/jsx-runtime");
const DialogFoot = ({
variant,
containerStyle,
children,
...rest
}) => {
const theme = (0, _index.useTheme)();
const dynamicStyles = {
borderTopWidth: variant === 'default' ? 0.7 : 0,
borderColor: theme?.colors.border.subtle,
padding: (0, _ResponsiveCalculations.verticalScale)(variant === 'default' ? 16 : 20),
paddingHorizontal: (0, _ResponsiveCalculations.horizontalScale)(variant === 'default' ? 16 : 25),
justifyContent: 'flex-end',
flexDirection: 'row'
};
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StyledView, {
style: [dynamicStyles, containerStyle],
...rest,
children: children
})
});
};
var _default = exports.default = DialogFoot;
//# sourceMappingURL=DialogFoot.js.map