@nexara/nativeflow
Version:
Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.
31 lines (30 loc) • 968 B
JavaScript
;
import { horizontalScale, verticalScale } from "../../helpers/ResponsiveCalculations.js";
import { useTheme } from "../../hooks/index.js";
import { StyledView } from "../StyledComponents/index.js";
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
const DialogFoot = ({
variant,
containerStyle,
children,
...rest
}) => {
const theme = useTheme();
const dynamicStyles = {
borderTopWidth: variant === 'default' ? 0.7 : 0,
borderColor: theme?.colors.border.subtle,
padding: verticalScale(variant === 'default' ? 16 : 20),
paddingHorizontal: horizontalScale(variant === 'default' ? 16 : 25),
justifyContent: 'flex-end',
flexDirection: 'row'
};
return /*#__PURE__*/_jsx(_Fragment, {
children: /*#__PURE__*/_jsx(StyledView, {
style: [dynamicStyles, containerStyle],
...rest,
children: children
})
});
};
export default DialogFoot;
//# sourceMappingURL=DialogFoot.js.map