returnnewError('MUI: You used an element after ListItemSecondaryAction. '+'For ListItem to detect that it has a secondary action '+'you must pass it as the last child to ListItem.');
}
returnnull;
}),
/**
* Override or extend the styles applied to the component.
*/
classes:PropTypes.object,
/**
* @ignore
*/
className:PropTypes.string,
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component:PropTypes.elementType,
/**
* The components used for each slot inside.
*
* This prop is an alias for the `slots` prop.
* It's recommended to use the `slots` prop instead.
*
* @default {}
*/
components:PropTypes.shape({
Root:PropTypes.elementType
}),
/**
* The extra props for the slot components.
* You can override the existing props or add new ones.
*
* This prop is an alias for the `slotProps` prop.
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
*
* @default {}
*/
componentsProps:PropTypes.shape({
root:PropTypes.object
}),
/**
* The container component used when a `ListItemSecondaryAction` is the last child.
* @default 'li'
* @deprecated
*/
ContainerComponent:elementTypeAcceptingRef,
/**
* Props applied to the container component if used.
* @default {}
* @deprecated
*/
ContainerProps:PropTypes.object,
/**
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
* The prop defaults to the value inherited from the parent List component.