Deskripsi: - update global - update division - update home - update project - update user - add component natification - add component reload No Issue
30 lines
551 B
TypeScript
30 lines
551 B
TypeScript
import { Avatar } from '@mantine/core';
|
|
import React from 'react';
|
|
import bgIcon from "../../../../public/assets/img/avatar.png"
|
|
|
|
interface AvatarType {
|
|
img: string
|
|
size: string
|
|
sizeNoImg: string
|
|
}
|
|
|
|
export default function SkeletonAvatar({ img, size, sizeNoImg }: AvatarType) {
|
|
return (
|
|
<>
|
|
{img == "" ?
|
|
<Avatar
|
|
size={sizeNoImg}
|
|
radius={"100"}
|
|
src={String(bgIcon)}
|
|
/>
|
|
:
|
|
<Avatar
|
|
size={size}
|
|
radius={"100"}
|
|
src={img}
|
|
/>
|
|
}
|
|
</>
|
|
);
|
|
}
|