@devloops/react-native-variant
Version:
react-native material ui library
2 lines • 1.23 kB
JavaScript
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _jsxFileName="/Users/devloops/Desktop/reactNative/reactNativeMUI/src/Components/AppBar/Content.tsx";import React from'react';import{View}from'react-native';import Text from'../Core/Typography';var Content=function Content(_ref){var title=_ref.title,subtitle=_ref.subtitle,color=_ref.color,subtitleProps=_ref.subtitleProps,titleProps=_ref.titleProps,otherContentProps=_objectWithoutProperties(_ref,["title","subtitle","color","subtitleProps","titleProps"]);return React.createElement(View,{style:{marginHorizontal:16,marginVertical:4,flexGrow:1},__source:{fileName:_jsxFileName,lineNumber:20}},React.createElement(Text,_extends({variant:"h6",paddingDisable:true,numberOfLines:1,gutterBottom:4,dense:true,color:color},titleProps,otherContentProps,{__source:{fileName:_jsxFileName,lineNumber:26}}),title),subtitle&&React.createElement(Text,_extends({variant:"subtitle2",dense:true,numberOfLines:1,color:color},subtitleProps,titleProps,{__source:{fileName:_jsxFileName,lineNumber:38}}),subtitle));};Content.displayName='AppBar.Content';export default Content;
//# sourceMappingURL=Content.js.map