accordion-rtl.tsx — ui Source File
Architecture documentation for accordion-rtl.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR dad3ff6c_8fe4_9c23_2a79_fc218381cefb["accordion-rtl.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] dad3ff6c_8fe4_9c23_2a79_fc218381cefb --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 5f869741_ff36_315f_a2b4_856acbcf8c81["accordion"] dad3ff6c_8fe4_9c23_2a79_fc218381cefb --> 5f869741_ff36_315f_a2b4_856acbcf8c81 2c1404ab_bf28_6225_f9a0_b9e29400c66c["language-selector"] dad3ff6c_8fe4_9c23_2a79_fc218381cefb --> 2c1404ab_bf28_6225_f9a0_b9e29400c66c style dad3ff6c_8fe4_9c23_2a79_fc218381cefb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/examples/base/ui-rtl/accordion"
import {
useTranslation,
type Translations,
} from "@/components/language-selector"
const translations: Translations = {
en: {
dir: "ltr",
values: {
question1: "How do I reset my password?",
answer1:
"Click on 'Forgot Password' on the login page, enter your email address, and we'll send you a link to reset your password.",
question2: "Can I change my subscription plan?",
answer2:
"Yes, you can upgrade or downgrade your plan at any time from your account settings. Changes will be reflected in your next billing cycle.",
question3: "What payment methods do you accept?",
answer3:
"We accept all major credit cards, PayPal, and bank transfers. All payments are processed securely through our payment partners.",
},
},
ar: {
dir: "rtl",
values: {
question1: "كيف يمكنني إعادة تعيين كلمة المرور؟",
answer1:
"انقر على 'نسيت كلمة المرور' في صفحة تسجيل الدخول، أدخل عنوان بريدك الإلكتروني، وسنرسل لك رابطًا لإعادة تعيين كلمة المرور. سينتهي صلاحية الرابط خلال 24 ساعة.",
question2: "هل يمكنني تغيير خطة الاشتراك الخاصة بي؟",
answer2:
"نعم، يمكنك ترقية أو تخفيض خطتك في أي وقت من إعدادات حسابك. ستظهر التغييرات في دورة الفوترة التالية.",
question3: "ما هي طرق الدفع التي تقبلونها؟",
answer3:
"نقبل جميع بطاقات الائتمان الرئيسية و PayPal والتحويلات المصرفية. تتم معالجة جميع المدفوعات بأمان من خلال شركاء الدفع لدينا.",
},
},
he: {
dir: "rtl",
values: {
question1: "איך אני מאפס את הסיסמה שלי?",
answer1:
"לחץ על 'שכחתי סיסמה' בעמוד ההתחברות, הזן את כתובת האימייל שלך, ונשלח לך קישור לאיפוס הסיסמה. הקישור יפוג תוך 24 שעות.",
question2: "האם אני יכול לשנות את תוכנית המנוי שלי?",
answer2:
"כן, אתה יכול לשדרג או להוריד את התוכנית שלך בכל עת מההגדרות של החשבון שלך. השינויים יבואו לידי ביטוי במחזור החיוב הבא.",
question3: "אילו אמצעי תשלום אתם מקבלים?",
answer3: "אנו מקבלים כרטיסי אשראי, PayPal והעברות בנקאיות.",
},
},
}
const items = [
{
value: "item-1",
questionKey: "question1" as const,
answerKey: "answer1" as const,
},
{
value: "item-2",
questionKey: "question2" as const,
answerKey: "answer2" as const,
},
{
value: "item-3",
questionKey: "question3" as const,
answerKey: "answer3" as const,
},
] as const
export function AccordionRtl() {
const { t } = useTranslation(translations, "ar")
return (
<Accordion defaultValue={["item-1"]} className="max-w-md">
{items.map((item) => (
<AccordionItem key={item.value} value={item.value}>
<AccordionTrigger>{t[item.questionKey]}</AccordionTrigger>
<AccordionContent>{t[item.answerKey]}</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
Domain
Subdomains
Functions
Dependencies
- accordion
- language-selector
- react
Source
Frequently Asked Questions
What does accordion-rtl.tsx do?
accordion-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 accordion-rtl.tsx?
accordion-rtl.tsx defines 1 function(s): AccordionRtl.
What does accordion-rtl.tsx depend on?
accordion-rtl.tsx imports 3 module(s): accordion, language-selector, react.
Where is accordion-rtl.tsx in the architecture?
accordion-rtl.tsx is located at apps/v4/examples/base/accordion-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