بلاک‌ها · بانکی و پرداخت
ری‌اکت ۱۹ و Next.js با پیاده‌سازی دسترس‌پذیری داخلی دیگویو ۳ با Composition APISvelte ۵ با runesانگولار با signals و دایرکتیوهای standaloneجتپک کامپوز با KotliniOS — هنوز پورت نشده

هدف‌های پس‌انداز: جمعِ پس‌انداز، کارتِ هر هدف با عکس، مبلغ از هدف و نوارِ پیشرفت، تشویقِ نزدیک به تکمیل و واریز با مبلغ‌های آماده.

۱. نصب کامپوننت‌ها

این بلاک از ۹ آیتم دیگ استفاده می‌کند: buttoncontrol-sizedialogiconspersianprogresstext-fieldtoasttoggle-group

پکیج‌منیجر پیش‌فرض Node.jsنصب سریع با لینک سخت و دیسک مشترکYarn نسخهٔ ۲ به بالا (Berry)رانتایم و پکیج‌منیجر Bun
npx digdesign@latest add https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/dialog.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/progress.json https://docs.digdesign.ir/r/text-field.json https://docs.digdesign.ir/r/toast.json https://docs.digdesign.ir/r/toggle-group.json
pnpm dlx digdesign@latest add https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/dialog.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/progress.json https://docs.digdesign.ir/r/text-field.json https://docs.digdesign.ir/r/toast.json https://docs.digdesign.ir/r/toggle-group.json
yarn dlx digdesign@latest add https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/dialog.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/progress.json https://docs.digdesign.ir/r/text-field.json https://docs.digdesign.ir/r/toast.json https://docs.digdesign.ir/r/toggle-group.json
bunx --bun digdesign@latest add https://docs.digdesign.ir/r/button.json https://docs.digdesign.ir/r/control-size.json https://docs.digdesign.ir/r/dialog.json https://docs.digdesign.ir/r/icons.json https://docs.digdesign.ir/r/persian.json https://docs.digdesign.ir/r/progress.json https://docs.digdesign.ir/r/text-field.json https://docs.digdesign.ir/r/toast.json https://docs.digdesign.ir/r/toggle-group.json
پکیج‌منیجر پیش‌فرض Node.jsنصب سریع با لینک سخت و دیسک مشترکYarn نسخهٔ ۲ به بالا (Berry)رانتایم و پکیج‌منیجر Bun
npx digdesign@latest add button control-size dialog persian progress text-field toast toggle-group --framework vue
pnpm dlx digdesign@latest add button control-size dialog persian progress text-field toast toggle-group --framework vue
yarn dlx digdesign@latest add button control-size dialog persian progress text-field toast toggle-group --framework vue
bunx --bun digdesign@latest add button control-size dialog persian progress text-field toast toggle-group --framework vue
پکیج‌منیجر پیش‌فرض Node.jsنصب سریع با لینک سخت و دیسک مشترکYarn نسخهٔ ۲ به بالا (Berry)رانتایم و پکیج‌منیجر Bun
npx digdesign@latest add button --framework svelte
pnpm dlx digdesign@latest add button --framework svelte
yarn dlx digdesign@latest add button --framework svelte
bunx --bun digdesign@latest add button --framework svelte
پکیج‌منیجر پیش‌فرض Node.jsنصب سریع با لینک سخت و دیسک مشترکYarn نسخهٔ ۲ به بالا (Berry)رانتایم و پکیج‌منیجر Bun
npx digdesign@latest add button control-size dialog icons input persian progress text-field toast toggle-group --framework angular
pnpm dlx digdesign@latest add button control-size dialog icons input persian progress text-field toast toggle-group --framework angular
yarn dlx digdesign@latest add button control-size dialog icons input persian progress text-field toast toggle-group --framework angular
bunx --bun digdesign@latest add button control-size dialog icons input persian progress text-field toast toggle-group --framework angular
پکیج‌منیجر پیش‌فرض Node.jsنصب سریع با لینک سخت و دیسک مشترکYarn نسخهٔ ۲ به بالا (Berry)رانتایم و پکیج‌منیجر Bun
npx digdesign@latest add button control-size dialog persian progress text-field toast toggle-group --framework android
pnpm dlx digdesign@latest add button control-size dialog persian progress text-field toast toggle-group --framework android
yarn dlx digdesign@latest add button control-size dialog persian progress text-field toast toggle-group --framework android
bunx --bun digdesign@latest add button control-size dialog persian progress text-field toast toggle-group --framework android

۲. کد صفحه

کد را در صفحهٔ پروژه‌تان بگذارید (React: app/<route>/page.tsx) و متن‌ها، داده و هندلرها را با محصول خودتان عوض کنید. با سوییچر فریم‌ورک کدِ همین صفحه در فریم‌ورک دیگر را ببینید.

wallet-savings.tsx
"use client"

import * as React from "react"

import { PlusIcon } from "@/components/icons"
import { Button } from "@/components/ui/button"
import { ControlSizeProvider } from "@/components/ui/control-size"
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"
import { Progress } from "@/components/ui/progress"
import { TextField } from "@/components/ui/text-field"
import { toast } from "@/components/ui/toast"
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"
import { formatCurrency } from "@/lib/persian"
import { stockImages, type StockImageName } from "@/lib/stock-images"

type Goal = { id: string; title: string; image: StockImageName; saved: number; target: number; due: string }
const GOALS: Goal[] = [
  { id: "1", title: "سفرِ نوروز", image: "planeWindow", saved: 18_400_000, target: 30_000_000, due: "۵ ماهِ دیگر" },
  { id: "2", title: "لپ‌تاپِ کار", image: "coverWorkspace", saved: 41_000_000, target: 45_000_000, due: "۱ ماهِ دیگر" },
  { id: "3", title: "صندوقِ اضطراری", image: "coverFinanceDesk", saved: 12_000_000, target: 60_000_000, due: "بدونِ موعد" },
]
const QUICK = [
  { value: 500_000, label: "۵۰۰ هزار" },
  { value: 1_000_000, label: "۱ میلیون" },
  { value: 5_000_000, label: "۵ میلیون" },
]

/**
 * قلک‌ها (هدف‌های پس‌انداز): جمعِ پس‌انداز، کارتِ هر هدف با عکس، مبلغِ جمع‌شده از هدف و
 * نوارِ پیشرفت، و «واریز» با مبلغ‌های آماده در دیالوگ؛ هدفِ نزدیک به تکمیل تشویق می‌شود.
 */
export default function WalletSavingsBlock() {
  const [goals, setGoals] = React.useState(GOALS)
  const [open, setOpen] = React.useState<Goal | null>(null)
  const [amount, setAmount] = React.useState("1000000")
  const total = goals.reduce((sum, goal) => sum + goal.saved, 0)

  return (
    <ControlSizeProvider size="xl" asChild>
      <main className="mx-auto flex w-full max-w-4xl flex-col gap-8 p-4 sm:p-6">
        <header className="flex flex-wrap items-end justify-between gap-x-4 gap-y-6">
          <div className="flex flex-col gap-1">
            <h1 className="text-2xl font-bold">قلک‌های من</h1>
            <p className="text-muted-foreground">
              جمعِ پس‌انداز: <span className="font-bold text-foreground tabular-nums">{formatCurrency(total)}</span>
            </p>
          </div>
          <Button>
            <PlusIcon />
            قلکِ تازه
          </Button>
        </header>
        <ul className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
          {goals.map((goal) => {
            const ratio = goal.saved / goal.target
            return (
              <li key={goal.id} className="flex flex-col overflow-hidden rounded-xl border border-border bg-card">
                {/* eslint-disable-next-line @next/next/no-img-element -- عکس از کتابخانهٔ تصویرِ دیگ */}
                <img src={stockImages[goal.image].src} alt="" className="aspect-[16/9] w-full object-cover" />
                <div className="flex flex-1 flex-col gap-4 p-4">
                  <div className="flex items-start justify-between gap-2">
                    <span className="font-bold">{goal.title}</span>
                    <span className="text-xs text-muted-foreground">{goal.due}</span>
                  </div>
                  <div className="flex flex-col gap-2">
                    <span className="text-sm">
                      <span className="font-bold tabular-nums">{formatCurrency(goal.saved)}</span> <span className="text-muted-foreground">از {formatCurrency(goal.target)}</span>
                    </span>
                    <Progress value={ratio * 100} aria-label={`پیشرفتِ ${goal.title}`} color={ratio >= 0.9 ? "success" : "primary"} />
                    {ratio >= 0.9 && <span className="text-xs font-medium text-success-subtle-foreground">فقط {formatCurrency(goal.target - goal.saved)} مانده!</span>}
                  </div>
                  <Button variant="outline" className="mt-auto" onClick={() => setOpen(goal)}>
                    واریز
                  </Button>
                </div>
              </li>
            )
          })}
        </ul>

        <Dialog open={open !== null} onOpenChange={(value) => !value && setOpen(null)}>
          <ControlSizeProvider size="xl" asChild>
            <DialogContent>
              <DialogHeader>
                <DialogTitle>واریز به «{open?.title}»</DialogTitle>
                <DialogDescription>از موجودی کیف پول برداشته می‌شود.</DialogDescription>
              </DialogHeader>
              <div className="flex flex-col gap-4">
                <TextField label="مبلغ" inputMode="numeric" dir="rtl" groupDigits endContent="تومان" value={amount} onValueChange={setAmount} />
                <ControlSizeProvider size="lg" mobileSize="default" asChild>
                  <ToggleGroup type="single" variant="segmented" value={amount} onValueChange={(value) => value && setAmount(value as string)} aria-label="مبلغ‌های آماده" className="w-full">
                    {QUICK.map((item) => (
                      <ToggleGroupItem key={item.value} value={String(item.value)} className="flex-1">
                        {item.label}
                      </ToggleGroupItem>
                    ))}
                  </ToggleGroup>
                </ControlSizeProvider>
              </div>
              <DialogFooter>
                <Button variant="outline" onClick={() => setOpen(null)}>
                  انصراف
                </Button>
                <Button
                  disabled={!Number(amount)}
                  onClick={() => {
                    setGoals((list) => list.map((goal) => (goal.id === open?.id ? { ...goal, saved: Math.min(goal.target, goal.saved + Number(amount)) } : goal)))
                    toast.success(`${formatCurrency(Number(amount))} به قلک رفت.`)
                    setOpen(null)
                  }}
                >
                  واریز
                </Button>
              </DialogFooter>
            </DialogContent>
          </ControlSizeProvider>
        </Dialog>
      </main>
    </ControlSizeProvider>
  )
}
wallet-savings.vue
<script setup lang="ts">
import { computed, ref } from "vue"

import Button from "@/components/ui/Button.vue"
import ControlSize from "@/components/ui/ControlSize.vue"
import Dialog from "@/components/ui/Dialog.vue"
import DialogContent from "@/components/ui/DialogContent.vue"
import DialogDescription from "@/components/ui/DialogDescription.vue"
import DialogFooter from "@/components/ui/DialogFooter.vue"
import DialogHeader from "@/components/ui/DialogHeader.vue"
import DialogTitle from "@/components/ui/DialogTitle.vue"
import Progress from "@/components/ui/Progress.vue"
import TextField from "@/components/ui/TextField.vue"
import { toast } from "@/components/ui/Toast.vue"
import ToggleGroup from "@/components/ui/ToggleGroup.vue"
import ToggleGroupItem from "@/components/ui/ToggleGroupItem.vue"
import { DigIcon } from "@/lib/icons"
import { formatCurrency } from "@/lib/persian"

const IMAGE_BASE = "https://docs.digdesign.ir/images"

type Goal = { id: string; title: string; image: string; saved: number; target: number; due: string }
const GOALS: Goal[] = [
  { id: "1", title: "سفرِ نوروز", image: `${IMAGE_BASE}/plane-window.webp`, saved: 18_400_000, target: 30_000_000, due: "۵ ماهِ دیگر" },
  { id: "2", title: "لپ‌تاپِ کار", image: `${IMAGE_BASE}/cover-workspace.webp`, saved: 41_000_000, target: 45_000_000, due: "۱ ماهِ دیگر" },
  { id: "3", title: "صندوقِ اضطراری", image: `${IMAGE_BASE}/cover-finance-desk.webp`, saved: 12_000_000, target: 60_000_000, due: "بدونِ موعد" },
]
const QUICK = [
  { value: 500_000, label: "۵۰۰ هزار" },
  { value: 1_000_000, label: "۱ میلیون" },
  { value: 5_000_000, label: "۵ میلیون" },
]

/**
 * قلک‌ها (هدف‌های پس‌انداز): جمعِ پس‌انداز، کارتِ هر هدف با عکس، مبلغِ جمع‌شده از هدف و
 * نوارِ پیشرفت، و «واریز» با مبلغ‌های آماده در دیالوگ؛ هدفِ نزدیک به تکمیل تشویق می‌شود.
 */
const goals = ref<Goal[]>(GOALS)
const open = ref<Goal | null>(null)
const amount = ref("1000000")
const total = computed(() => goals.value.reduce((sum, goal) => sum + goal.saved, 0))

function onQuickChange(value: string | string[] | undefined) {
  if (value) amount.value = value as string
}

function deposit() {
  goals.value = goals.value.map((goal) => (goal.id === open.value?.id ? { ...goal, saved: Math.min(goal.target, goal.saved + Number(amount.value)) } : goal))
  toast.success(`${formatCurrency(Number(amount.value))} به قلک رفت.`)
  open.value = null
}
</script>

<template>
  <ControlSize size="xl" as-child>
    <main class="mx-auto flex w-full max-w-4xl flex-col gap-8 p-4 sm:p-6">
      <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-6">
        <div class="flex flex-col gap-1">
          <h1 class="text-2xl font-bold">قلک‌های من</h1>
          <p class="text-muted-foreground">
            جمعِ پس‌انداز: <span class="font-bold text-foreground tabular-nums">{{ formatCurrency(total) }}</span>
          </p>
        </div>
        <Button>
          <DigIcon name="plus" />
          قلکِ تازه
        </Button>
      </header>
      <ul class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
        <li v-for="goal in goals" :key="goal.id" class="flex flex-col overflow-hidden rounded-xl border border-border bg-card">
          <img :src="goal.image" alt="" class="aspect-[16/9] w-full object-cover" />
          <div class="flex flex-1 flex-col gap-4 p-4">
            <div class="flex items-start justify-between gap-2">
              <span class="font-bold">{{ goal.title }}</span>
              <span class="text-xs text-muted-foreground">{{ goal.due }}</span>
            </div>
            <div class="flex flex-col gap-2">
              <span class="text-sm">
                <span class="font-bold tabular-nums">{{ formatCurrency(goal.saved) }}</span> <span class="text-muted-foreground">از {{ formatCurrency(goal.target) }}</span>
              </span>
              <Progress :value="(goal.saved / goal.target) * 100" :aria-label="`پیشرفتِ ${goal.title}`" :color="goal.saved / goal.target >= 0.9 ? 'success' : 'primary'" />
              <span v-if="goal.saved / goal.target >= 0.9" class="text-xs font-medium text-success-subtle-foreground">فقط {{ formatCurrency(goal.target - goal.saved) }} مانده!</span>
            </div>
            <Button variant="outline" class="mt-auto" @click="open = goal">واریز</Button>
          </div>
        </li>
      </ul>

      <Dialog :open="open !== null" @update:open="(value) => !value && (open = null)">
        <ControlSize size="xl" as-child>
          <DialogContent>
            <DialogHeader>
              <DialogTitle>واریز به «{{ open?.title }}»</DialogTitle>
              <DialogDescription>از موجودی کیف پول برداشته می‌شود.</DialogDescription>
            </DialogHeader>
            <div class="flex flex-col gap-4">
              <TextField v-model="amount" label="مبلغ" inputmode="numeric" dir="rtl" group-digits>
                <template #endContent>تومان</template>
              </TextField>
              <ControlSize size="lg" mobile-size="default" as-child>
                <ToggleGroup type="single" variant="segmented" :value="amount" aria-label="مبلغ‌های آماده" class="w-full" @update:value="onQuickChange">
                  <ToggleGroupItem v-for="item in QUICK" :key="item.value" :value="String(item.value)" class="flex-1">
                    {{ item.label }}
                  </ToggleGroupItem>
                </ToggleGroup>
              </ControlSize>
            </div>
            <DialogFooter>
              <Button variant="outline" @click="open = null">انصراف</Button>
              <Button :disabled="!Number(amount)" @click="deposit">واریز</Button>
            </DialogFooter>
          </DialogContent>
        </ControlSize>
      </Dialog>
    </main>
  </ControlSize>
</template>

کدِ این بلاک هنوز برای Svelte نوشته نشده است.

این موارد هنوز برای Svelte آماده نیستند: control-sizedialogpersianprogresstext-fieldtoasttoggle-groupآیکون plus

کدِ React همین بلاک مرجع است. با MCP دیگ و get_block با framework="svelte" ایجنت آن را با کامپوننت‌های Svelte می‌سازد.

wallet-savings.ts
import { Component, ChangeDetectionStrategy, signal, computed } from "@angular/core"

import { DigControlSize } from "@/components/ui/control-size"
import { DigButton } from "@/components/ui/button"
import { DigIcon } from "@/lib/icons"
import { DigProgress } from "@/components/ui/progress"
import {
  DigDialog,
  DigDialogContent,
  DigDialogHeader,
  DigDialogTitle,
  DigDialogDescription,
  DigDialogFooter,
} from "@/components/ui/dialog"
import { DigTextField } from "@/components/ui/text-field"
import { DigInputEnd, DigInput, DigInputField } from "@/components/ui/input"
import { DigToggleGroup, DigToggleGroupItem } from "@/components/ui/toggle-group"
import { FormsModule } from "@angular/forms"
import { toast } from "@/components/ui/toast"
import { formatCurrency } from "@/lib/persian"

const IMAGE_BASE = "https://docs.digdesign.ir/images"

type Goal = { id: string; title: string; image: string; saved: number; target: number; due: string }

const GOALS: Goal[] = [
  {
    id: "1",
    title: "سفرِ نوروز",
    image: `${IMAGE_BASE}/plane-window.webp`,
    saved: 18_400_000,
    target: 30_000_000,
    due: "۵ ماهِ دیگر",
  },
  {
    id: "2",
    title: "لپ‌تاپِ کار",
    image: `${IMAGE_BASE}/cover-workspace.webp`,
    saved: 41_000_000,
    target: 45_000_000,
    due: "۱ ماهِ دیگر",
  },
  {
    id: "3",
    title: "صندوقِ اضطراری",
    image: `${IMAGE_BASE}/cover-finance-desk.webp`,
    saved: 12_000_000,
    target: 60_000_000,
    due: "بدونِ موعد",
  },
]

const QUICK = [
  { value: 500_000, label: "۵۰۰ هزار" },
  { value: 1_000_000, label: "۱ میلیون" },
  { value: 5_000_000, label: "۵ میلیون" },
]

@Component({
  selector: "dig-block-wallet-savings",
  imports: [
    DigControlSize,
    DigButton,
    DigIcon,
    DigProgress,
    DigDialog,
    DigDialogContent,
    DigDialogHeader,
    DigDialogTitle,
    DigDialogDescription,
    DigDialogFooter,
    DigTextField,
    DigInputEnd,
    DigInput,
    DigInputField,
    DigToggleGroup,
    DigToggleGroupItem,
    FormsModule,
  ],
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    <main digControlSize="xl" class="mx-auto flex w-full max-w-4xl flex-col gap-8 p-4 sm:p-6">
      <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-6">
        <div class="flex flex-col gap-1">
          <h1 class="text-2xl font-bold">قلک‌های من</h1>
          <p class="text-muted-foreground">
            جمعِ پس‌انداز: <span class="font-bold text-foreground tabular-nums">{{ formatCurrency(total()) }}</span>
          </p>
        </div>
        <button digButton type="button">
          <svg digIcon="plus"></svg>
          قلکِ تازه
        </button>
      </header>
      <ul class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
        @for (goal of goals(); track goal.id) {
          <li class="flex flex-col overflow-hidden rounded-xl border border-border bg-card">
            <img [src]="goal.image" alt="" class="aspect-[16/9] w-full object-cover" />
            <div class="flex flex-1 flex-col gap-4 p-4">
              <div class="flex items-start justify-between gap-2">
                <span class="font-bold">{{ goal.title }}</span>
                <span class="text-xs text-muted-foreground">{{ goal.due }}</span>
              </div>
              <div class="flex flex-col gap-2">
                <span class="text-sm"
                  ><span class="font-bold tabular-nums">{{ formatCurrency(goal.saved) }}</span>
                  <span class="text-muted-foreground">از {{ formatCurrency(goal.target) }}</span></span
                >
                <div
                  digProgress
                  [value]="(goal.saved / goal.target) * 100"
                  [attr.aria-label]="\`پیشرفتِ \${goal.title}\`"
                  [color]="goal.saved / goal.target >= 0.9 ? 'success' : 'primary'"
                ></div>
                @if (goal.saved / goal.target >= 0.9) {
                  <span class="text-xs font-medium text-success-subtle-foreground"
                    >فقط {{ formatCurrency(goal.target - goal.saved) }} مانده!</span
                  >
                }
              </div>
              <button digButton type="button" variant="outline" class="mt-auto" (click)="open.set(goal)">واریز</button>
            </div>
          </li>
        }
      </ul>

      <ng-container digDialog [open]="open() !== null" (openChange)="!$event && open.set(null)"
        ><div digControlSize="xl" digDialogContent>
          <div digDialogHeader>
            <h2 digDialogTitle>واریز به «{{ open()?.title }}»</h2>
            <p digDialogDescription>از موجودی کیف پول برداشته می‌شود.</p>
          </div>
          <div class="flex flex-col gap-4">
            <div digTextField label="مبلغ">
              <dig-input
                ><input
                  digInput
                  [ngModel]="amount()"
                  [ngModelOptions]="{ standalone: true }"
                  (ngModelChange)="amount.set($event)"
                  inputmode="numeric"
                  dir="rtl"
                  groupDigits
                /><span digInputEnd>تومان</span></dig-input
              >
            </div>
            <div digControlSize="lg" mobileSize="default">
              <div
                digToggleGroup
                type="single"
                variant="segmented"
                [value]="amount()"
                aria-label="مبلغ‌های آماده"
                class="w-full"
                (valueChange)="onQuickChange($event)"
              >
                @for (item of QUICK; track item.value) {
                  <button digToggleGroupItem [value]="string(item.value)" class="flex-1">{{ item.label }}</button>
                }
              </div>
            </div>
          </div>
          <div digDialogFooter>
            <button digButton type="button" variant="outline" (click)="open.set(null)">انصراف</button>
            <button digButton type="button" [disabled]="!numeric(amount())" (click)="deposit()">واریز</button>
          </div>
        </div></ng-container
      >
    </main>
  `,
})
export class WalletSavingsBlock {
  readonly numeric = Number

  readonly string = String

  readonly formatCurrency = formatCurrency

  readonly QUICK = QUICK

  readonly goals = signal<Goal[]>(GOALS)

  readonly open = signal<Goal | null>(null)

  readonly amount = signal("1000000")

  readonly total = computed(() => this.goals().reduce((sum, goal) => sum + goal.saved, 0))

  onQuickChange(value: string | string[] | undefined) {
    if (value) this.amount.set(value as string)
  }

  deposit() {
    this.goals.set(
      this.goals().map((goal) =>
        goal.id === this.open()?.id
          ? { ...goal, saved: Math.min(goal.target, goal.saved + Number(this.amount())) }
          : goal
      )
    )
    toast.success(`${formatCurrency(Number(this.amount()))} به قلک رفت.`)
    this.open.set(null)
  }
}

کدِ این بلاک هنوز برای Android نوشته نشده است.

همهٔ کامپوننت‌های لازم برای Android آماده‌اند؛ با MCP می‌توانید همین صفحه را از روی نسخهٔ React بسازید.

کدِ React همین بلاک مرجع است. با MCP دیگ و get_block با framework="android" ایجنت آن را با کامپوننت‌های Android می‌سازد.