import LocalizedClientLink from "@modules/common/components/localized-client-link" import { convertToLocale } from "@lib/util/money" import { HttpTypes } from "@medusajs/types" import { ArrowRight } from "lucide-react" type OverviewProps = { customer: HttpTypes.StoreCustomer | null orders: HttpTypes.StoreOrder[] | null } const formatDate = (value: string | Date) => new Date(value).toLocaleDateString("bs-BA", { day: "numeric", month: "long", year: "numeric" }) const Overview = ({ customer, orders }: OverviewProps) => { const stats = [ { value: `${getProfileCompletion(customer)}%`, label: "Profil popunjen", href: "/account/profile", testId: "customer-profile-completion" }, { value: String(customer?.addresses?.length ?? 0), label: "Sačuvane adrese", href: "/account/addresses", testId: "addresses-count" }, { value: String(orders?.length ?? 0), label: "Narudžbe", href: "/account/orders", testId: "orders-count" }, ] return (
{s.value}
{s.label}