export const formatBDT = (n: number) => `৳${n.toLocaleString("en-BD")}`;
export const formatCredits = (n: number) => `${n.toLocaleString("en-US")} Credits`;
export const formatDate = (iso: string) => new Date(iso).toLocaleString("en-GB", {
  day: "2-digit", month: "short", year: "numeric", hour: "2-digit", minute: "2-digit",
});
export const orderNumber = (n: number) => `#${String(n).padStart(4, "0")}`;