Home / File/ empty-avatar-group.tsx — ui Source File

empty-avatar-group.tsx — ui Source File

Architecture documentation for empty-avatar-group.tsx, a tsx file in the ui codebase. 5 imports, 1 dependents.

File tsx Internationalization Dictionary 5 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  fbe21793_bf92_c385_d1d2_68864f5c3616["empty-avatar-group.tsx"]
  6c14f870_5c42_4073_9c61_41148730561b["avatar"]
  fbe21793_bf92_c385_d1d2_68864f5c3616 --> 6c14f870_5c42_4073_9c61_41148730561b
  43bb9fc1_6eab_13df_a99b_981eb13b9ec1["button"]
  fbe21793_bf92_c385_d1d2_68864f5c3616 --> 43bb9fc1_6eab_13df_a99b_981eb13b9ec1
  49420061_5812_6802_3c39_964bf3930555["empty"]
  fbe21793_bf92_c385_d1d2_68864f5c3616 --> 49420061_5812_6802_3c39_964bf3930555
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  fbe21793_bf92_c385_d1d2_68864f5c3616 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"]
  fbe21793_bf92_c385_d1d2_68864f5c3616 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c
  a20493d4_39f4_bced_97b9_027078a02a91["index.tsx"]
  a20493d4_39f4_bced_97b9_027078a02a91 --> fbe21793_bf92_c385_d1d2_68864f5c3616
  style fbe21793_bf92_c385_d1d2_68864f5c3616 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import {
  Avatar,
  AvatarFallback,
  AvatarGroup,
  AvatarImage,
} from "@/examples/base/ui-rtl/avatar"
import { Button } from "@/examples/base/ui-rtl/button"
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/examples/base/ui-rtl/empty"
import { PlusIcon } from "lucide-react"

import { useLanguageContext } from "@/components/language-selector"

const translations = {
  ar: {
    dir: "rtl" as const,
    title: "لا يوجد أعضاء في الفريق",
    description: "قم بدعوة فريقك للتعاون في هذا المشروع.",
    invite: "دعوة أعضاء",
  },
  he: {
    dir: "rtl" as const,
    title: "אין חברי צוות",
    description: "הזמן את הצוות שלך לשתף פעולה בפרויקט זה.",
    invite: "הזמן חברים",
  },
}

export function EmptyAvatarGroup() {
  const context = useLanguageContext()
  const lang = context?.language === "he" ? "he" : "ar"
  const t = translations[lang]

  return (
    <Empty className="flex-none border py-10" dir={t.dir}>
      <EmptyHeader>
        <EmptyMedia>
          <AvatarGroup className="grayscale">
            <Avatar>
              <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
              <AvatarFallback>CN</AvatarFallback>
            </Avatar>
            <Avatar>
              <AvatarImage
                src="https://github.com/maxleiter.png"
                alt="@maxleiter"
              />
              <AvatarFallback>LR</AvatarFallback>
            </Avatar>
            <Avatar>
              <AvatarImage
                src="https://github.com/evilrabbit.png"
                alt="@evilrabbit"
              />
              <AvatarFallback>ER</AvatarFallback>
            </Avatar>
          </AvatarGroup>
        </EmptyMedia>
        <EmptyTitle>{t.title}</EmptyTitle>
        <EmptyDescription>{t.description}</EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button size="sm">
          <PlusIcon />
          {t.invite}
        </Button>
      </EmptyContent>
    </Empty>
  )
}

Subdomains

Functions

Dependencies

  • avatar
  • button
  • empty
  • language-selector
  • lucide-react

Frequently Asked Questions

What does empty-avatar-group.tsx do?
empty-avatar-group.tsx is a source file in the ui codebase, written in tsx. It belongs to the Internationalization domain, Dictionary subdomain.
What functions are defined in empty-avatar-group.tsx?
empty-avatar-group.tsx defines 1 function(s): EmptyAvatarGroup.
What does empty-avatar-group.tsx depend on?
empty-avatar-group.tsx imports 5 module(s): avatar, button, empty, language-selector, lucide-react.
What files import empty-avatar-group.tsx?
empty-avatar-group.tsx is imported by 1 file(s): index.tsx.
Where is empty-avatar-group.tsx in the architecture?
empty-avatar-group.tsx is located at apps/v4/app/(app)/examples/rtl/components/empty-avatar-group.tsx (domain: Internationalization, subdomain: Dictionary, directory: apps/v4/app/(app)/examples/rtl/components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free