Помогите передать данные в другой компонент
<Typography variant='body1' component='p' sx={{ fontSize: 'lg', fontWeight: 'medium', mt: 6 }}>
Вид порушення:
</Typography>
{act.violation_type.violation_description ? (
<Typography variant='body1' component='p' sx={{ fontSize: 'lg', fontWeight: 'light' }}>
{act.violation_type.violation_description} {' '} {act.violation_type.violation_name}
</Typography>) : (<Typography variant='h1' component='h1' sx={{ color: 'red.500', mt: 5 }}>
Відсутня інформація про вид порушення.
</Typography>)}
выдает такую ошибку