Home / File/ empty-rtl.tsx — ui Source File

empty-rtl.tsx — ui Source File

Architecture documentation for empty-rtl.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  4fa35b37_4e99_3053_f845_9f6ddc369d98["empty-rtl.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  4fa35b37_4e99_3053_f845_9f6ddc369d98 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  43bb9fc1_6eab_13df_a99b_981eb13b9ec1["button"]
  4fa35b37_4e99_3053_f845_9f6ddc369d98 --> 43bb9fc1_6eab_13df_a99b_981eb13b9ec1
  49420061_5812_6802_3c39_964bf3930555["empty"]
  4fa35b37_4e99_3053_f845_9f6ddc369d98 --> 49420061_5812_6802_3c39_964bf3930555
  39a0d62e_8e7d_d097_eb95_91d2bca361f7["icons-react"]
  4fa35b37_4e99_3053_f845_9f6ddc369d98 --> 39a0d62e_8e7d_d097_eb95_91d2bca361f7
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  4fa35b37_4e99_3053_f845_9f6ddc369d98 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"]
  4fa35b37_4e99_3053_f845_9f6ddc369d98 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c
  style 4fa35b37_4e99_3053_f845_9f6ddc369d98 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Button } from "@/examples/base/ui-rtl/button"
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/examples/base/ui-rtl/empty"
import { IconFolderCode } from "@tabler/icons-react"
import { ArrowUpRightIcon } from "lucide-react"

import {
  useTranslation,
  type Translations,
} from "@/components/language-selector"

const translations: Translations = {
  en: {
    dir: "ltr",
    values: {
      title: "No Projects Yet",
      description:
        "You haven't created any projects yet. Get started by creating your first project.",
      createProject: "Create Project",
      importProject: "Import Project",
      learnMore: "Learn More",
    },
  },
  ar: {
    dir: "rtl",
    values: {
      title: "لا توجد مشاريع بعد",
      description: "لم تقم بإنشاء أي مشاريع بعد. ابدأ بإنشاء مشروعك الأول.",
      createProject: "إنشاء مشروع",
      importProject: "استيراد مشروع",
      learnMore: "تعرف على المزيد",
    },
  },
  he: {
    dir: "rtl",
    values: {
      title: "אין פרויקטים עדיין",
      description:
        "עדיין לא יצרת פרויקטים. התחל על ידי יצירת הפרויקט הראשון שלך.",
      createProject: "צור פרויקט",
      importProject: "ייבא פרויקט",
      learnMore: "למד עוד",
    },
  },
}

export function EmptyRtl() {
  const { dir, t } = useTranslation(translations, "ar")

  return (
    <Empty dir={dir}>
      <EmptyHeader>
        <EmptyMedia variant="icon">
          <IconFolderCode />
        </EmptyMedia>
        <EmptyTitle>{t.title}</EmptyTitle>
        <EmptyDescription>{t.description}</EmptyDescription>
      </EmptyHeader>
      <EmptyContent className="flex-row justify-center gap-2">
        <Button>{t.createProject}</Button>
        <Button variant="outline">{t.importProject}</Button>
      </EmptyContent>
      <Button
        variant="link"
        render={<a href="#" />}
        className="text-muted-foreground"
        size="sm"
        nativeButton={false}
      >
        {t.learnMore}{" "}
        <ArrowUpRightIcon className="rtl:rotate-270" data-icon="inline-end" />
      </Button>
    </Empty>
  )
}

Subdomains

Functions

Dependencies

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

Frequently Asked Questions

What does empty-rtl.tsx do?
empty-rtl.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in empty-rtl.tsx?
empty-rtl.tsx defines 1 function(s): EmptyRtl.
What does empty-rtl.tsx depend on?
empty-rtl.tsx imports 6 module(s): button, empty, icons-react, language-selector, lucide-react, react.
Where is empty-rtl.tsx in the architecture?
empty-rtl.tsx is located at apps/v4/examples/base/empty-rtl.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free