import PropTypes from 'prop-types'; // @mui import Avatar from '@mui/material/Avatar'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; // @icons import { IconPhoto } from '@tabler/icons-react'; /*************************** PROFILE ***************************/ export default function Profile({ avatar, title, caption, label, sx, titleProps, captionProps, placeholderIfEmpty }) { return ( {(avatar?.src || placeholderIfEmpty) && ( {!avatar?.src && placeholderIfEmpty && } )} {title || (placeholderIfEmpty && 'N/A')} {label} {caption || (placeholderIfEmpty && '---')} ); } Profile.propTypes = { avatar: PropTypes.any, title: PropTypes.any, caption: PropTypes.any, label: PropTypes.any, sx: PropTypes.any, titleProps: PropTypes.any, captionProps: PropTypes.any, placeholderIfEmpty: PropTypes.any };