diff --git a/src/app/routers/index.tsx b/src/app/routers/index.tsx
index 467ec46..80215d9 100644
--- a/src/app/routers/index.tsx
+++ b/src/app/routers/index.tsx
@@ -16,7 +16,7 @@ const root: RouteObject[] = [
element:
{content}
diff --git a/src/shared/ui/profile/ProfileImage.scss b/src/shared/ui/profile/ProfileImage.scss new file mode 100644 index 0000000..9439685 --- /dev/null +++ b/src/shared/ui/profile/ProfileImage.scss @@ -0,0 +1,23 @@ +.profile-image { + width: 32px; + height: 32px; + + border-radius: 50%; + overflow: hidden; +} + +.no-proile-background { + position: relative; + width: 32px; + height: 32px; + border-radius: 50%; + overflow: hidden; + + background: $gray3; + + svg { + z-index: 1; + position: absolute; + bottom: 0; + } +} diff --git a/src/shared/ui/profile/ProfileImage.tsx b/src/shared/ui/profile/ProfileImage.tsx new file mode 100644 index 0000000..828155a --- /dev/null +++ b/src/shared/ui/profile/ProfileImage.tsx @@ -0,0 +1,22 @@ +import { Icon } from '..'; +import './ProfileImage.scss'; + +interface ProfileImageProps { + profileImage: string; + name: string; +} + +const ProfileImage = ({ profileImage, name }: ProfileImageProps) => { + return profileImage ? ( + + ) : ( +