mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
"use client"
|
|
|
|
import { Button } from "@/examples/base/ui-rtl/button"
|
|
import {
|
|
Empty,
|
|
EmptyContent,
|
|
EmptyDescription,
|
|
EmptyHeader,
|
|
EmptyMedia,
|
|
EmptyTitle,
|
|
} from "@/examples/base/ui-rtl/empty"
|
|
import { Spinner } from "@/examples/base/ui-rtl/spinner"
|
|
|
|
import { useLanguageContext } from "@/components/language-selector"
|
|
|
|
const translations = {
|
|
ar: {
|
|
dir: "rtl" as const,
|
|
title: "جارٍ معالجة طلبك",
|
|
description: "يرجى الانتظار بينما نعالج طلبك. لا تقم بتحديث الصفحة.",
|
|
cancel: "إلغاء",
|
|
},
|
|
he: {
|
|
dir: "rtl" as const,
|
|
title: "מעבד את הבקשה שלך",
|
|
description: "אנא המתן בזמן שאנו מעבדים את בקשתך. אל תרענן את הדף.",
|
|
cancel: "ביטול",
|
|
},
|
|
}
|
|
|
|
export function SpinnerEmpty() {
|
|
const context = useLanguageContext()
|
|
const lang = context?.language === "he" ? "he" : "ar"
|
|
const t = translations[lang]
|
|
|
|
return (
|
|
<Empty className="w-full border md:p-6" dir={t.dir}>
|
|
<EmptyHeader>
|
|
<EmptyMedia variant="icon">
|
|
<Spinner />
|
|
</EmptyMedia>
|
|
<EmptyTitle>{t.title}</EmptyTitle>
|
|
<EmptyDescription>{t.description}</EmptyDescription>
|
|
</EmptyHeader>
|
|
<EmptyContent>
|
|
<Button variant="outline" size="sm">
|
|
{t.cancel}
|
|
</Button>
|
|
</EmptyContent>
|
|
</Empty>
|
|
)
|
|
}
|