import * as React from 'react'; 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 type { IApp } from 'types'; import { CardContent, Typography } from './style'; type AppRowProps = { application: IApp; url: string; }; const countTranslation = (value: React.ReactNode) => ( <> {value}
); function AppRow(props: AppRowProps): React.ReactElement { 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 }} /> ); } export default AppRow;