// @flow import * as React from 'react'; import {Avatar, Card, withTheme} from 'react-native-paper'; function getIcon(icon, color) { return ( ); } function EventDashBoardItem(props) { const {colors} = props.theme; const iconColor = props.isAvailable ? colors.planningColor : colors.textDisabled; const textColor = props.isAvailable ? colors.text : colors.textDisabled; return ( getIcon(props.icon, iconColor)} /> {props.children} ); } export default withTheme(EventDashBoardItem);