Files
hipmi/src/app_modules/_global/component/comp_tampilan_rupiah.tsx
Bagasbanuna02 84b7b381f6 fix: File view
Deksripsi:
- Tampilan file view pdf
- Optimalisasi admin
## No Isuue
2024-09-06 11:36:53 +08:00

32 lines
669 B
TypeScript

import { MainColor } from "@/app_modules/_global/color/color_pallet";
import { Text } from "@mantine/core";
export default function ComponentGlobal_TampilanRupiah({
nominal,
color,
fontSize,
fontWeight,
}: {
nominal: number;
color?: string;
fontSize?: number | string;
fontWeight?: string | number;
}) {
return (
<>
<Text
fw={fontWeight ? fontWeight : "bold"}
fz={fontSize ? fontSize : "md"}
style={{
color: color ? color : "white",
}}
>
Rp.{" "}
{new Intl.NumberFormat("id-ID", { maximumFractionDigits: 10 }).format(
nominal
)}
</Text>
</>
);
}