'use client' // Next Imports // MUI Imports import Card from '@mui/material/Card' import CardContent from '@mui/material/CardContent' // Third-party Imports import classnames from 'classnames' import CustomAvatar, { CustomAvatarProps } from '../../../@core/components/mui/Avatar' import { ThemeColor } from '../../../@core/types' import { Skeleton, Typography } from '@mui/material' import { formatShortCurrency } from '../../../utils/transform' type Props = { title: string value: number isCurrency: boolean isLoading: boolean avatarIcon: string avatarSkin?: CustomAvatarProps['skin'] avatarSize?: number avatarColor?: ThemeColor } const DistributedBarChartOrder = ({ title, value, isCurrency = false, isLoading, avatarIcon, avatarSkin, avatarColor }: Props) => { if (isLoading) { return } return (
{title} {isCurrency ? 'Rp ' + formatShortCurrency(value) : formatShortCurrency(value)}
) } export default DistributedBarChartOrder