import * as React from 'react'; import {Badge, IconButton, withTheme} from 'react-native-paper'; import {View} from "react-native"; /** * Component used to render a small dashboard item * * @param props Props to pass to the component * @return {*} */ function SmallDashboardItem(props) { const {colors} = props.theme; return ( { props.badgeNumber > 0 ? {props.badgeNumber} : null } ); } export default withTheme(SmallDashboardItem);