"use client" import { Avatar, AvatarFallback } from "@/components/ui/avatar"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { cn } from "@/lib/utils"; import { useTranslations } from "next-intl"; import { Link } from '@/i18n/routing'; import { useState } from "react"; const users = [ { name: "Ab", }, { name: "Bc", }, { name: "Cd", }, { name: "Df", }, { name: "Ab", }, { name: "Sd", }, { name: "Sg", }, ]; const AmountTransfer = () => { const t = useTranslations("BankingDashboard"); const [activeIndex, setActiveIndex] = useState(0); return (
{t("contacts")}
{t("view_all")}
{users.map((user, index) => ( setActiveIndex(index)} > {user.name} ))}
{t("total_amount")}
$6547
); }; export default AmountTransfer;