import * as React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Card from '@mui/material/Card'; import Box from '@mui/material/Box'; import CardActionArea from '@mui/material/CardActionArea'; import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos'; import useFormatMessage from 'hooks/useFormatMessage'; import AppIcon from 'components/AppIcon'; import { AppPropType } from 'propTypes/propTypes'; import { CardContent, Typography } from './style'; const countTranslation = (value) => ( <> {value}
); function AppRow(props) { const formatMessage = useFormatMessage(); const { name, primaryColor, iconUrl, connectionCount, flowCount } = props.application; return ( {name} {formatMessage('app.connectionCount', { count: countTranslation(connectionCount || '-'), })} {formatMessage('app.flowCount', { count: countTranslation(flowCount || '-'), })} theme.palette.primary.main }} /> ); } AppRow.propTypes = { application: AppPropType.isRequired, url: PropTypes.string.isRequired, }; export default AppRow;