This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
chathive/client/src/components/ProfilePhoto.jsx
2023-07-23 14:22:05 +03:00

23 lines
454 B
JavaScript

import { Box } from "@mui/material";
const baseUrl = process.env.REACT_APP_BASE_URL;
const ProfilePhoto = ({ image, size = "60px" }) => {
return (
<Box width={size} height={size}>
<img
style={{
objectFit: "cover",
borderRadius: "50%",
}}
width={size}
height={size}
alt="profile"
src={`${baseUrl}/assets/${image}`}
/>
</Box>
);
};
export default ProfilePhoto;