import { Link } from 'react-router-dom';
import Card from '@mui/material/Card';
import Box from '@mui/material/Box';
import Avatar from '@mui/material/Avatar';
import CardActionArea from '@mui/material/CardActionArea';
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
import useFormatMessage from 'hooks/useFormatMessage';
import { CardContent, Typography, DesktopOnlyBreakline } from './style';
type AppRowProps = {
icon?: React.ReactNode;
name: string;
connectionNumber?: number;
flowNumber?: number;
to: string;
}
const countTranslation = (value: React.ReactNode) => (<>{value}>);
function AppRow(props: AppRowProps) {
const formatMessage = useFormatMessage();
const { name, to } = props;
return (
{name[0].toUpperCase()}
{name}
{formatMessage('app.connections', { count: countTranslation(Math.round(Math.random() * 100)) })}
{formatMessage('app.flows', { count: countTranslation(Math.round(Math.random() * 100)) })}
);
}
export default AppRow;