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
  bcac5977_6eed_7ff5_fcb7_bee169310d36["empty-rtl.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  bcac5977_6eed_7ff5_fcb7_bee169310d36 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  c79cdc74_50fb_62bd_465f_35936d2c5eac["button"]
  bcac5977_6eed_7ff5_fcb7_bee169310d36 --> c79cdc74_50fb_62bd_465f_35936d2c5eac
  1c36829b_dfe7_bd7a_d18d_0244bb72262c["empty"]
  bcac5977_6eed_7ff5_fcb7_bee169310d36 --> 1c36829b_dfe7_bd7a_d18d_0244bb72262c
  39a0d62e_8e7d_d097_eb95_91d2bca361f7["icons-react"]
  bcac5977_6eed_7ff5_fcb7_bee169310d36 --> 39a0d62e_8e7d_d097_eb95_91d2bca361f7
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  bcac5977_6eed_7ff5_fcb7_bee169310d36 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"]
  bcac5977_6eed_7ff5_fcb7_bee169310d36 --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c
  style bcac5977_6eed_7ff5_fcb7_bee169310d36 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Button } from "@/examples/radix/ui-rtl/button"
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/examples/radix/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"
        asChild
        className="text-muted-foreground"
        size="sm"
      >
        <a href="#">
          {t.learnMore}{" "}
          <ArrowUpRightIcon className="rtl:rotate-270" data-icon="inline-end" />
        </a>
      </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/radix/empty-rtl.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free