import Chip from '@mui/material/Chip' import React from 'react' const Status = ({ status }) => { return } const MainStatus = ({ statuses }) => { const mainStatus = statuses.find(s => s.type === 'error') || statuses.find(s => s.type === 'warning') || statuses[0] const plus = { label: `+${statuses.length - 1}`, type: mainStatus.type } return (
{statuses.length > 1 && }
) } export { Status, MainStatus }