import Body from "@/components/TempDesignSystem/Text/Body" import Title from "@/components/TempDesignSystem/Text/Title" import { getIntl } from "@/i18n" import styles from "./pointsColumn.module.css" import type { PointsColumnProps } from "@/types/components/myPages/points" export async function PointsColumn({ title, subtitle, value, }: PointsColumnProps) { const intl = await getIntl() let number = "N/A" if (typeof value === "number") { number = intl.formatNumber(value) } return (
{title} {number} {subtitle ? ( {subtitle} ) : null}
) }