import * as React from "react" import { cn } from "./utils" interface DataDisplayProps extends React.ComponentProps<"div"> { label: string value: string | number icon?: React.ReactNode highlighted?: boolean } function DataDisplay({ label, value, icon, highlighted = false, className, ...props }: DataDisplayProps) { return (
{icon && (
{icon}
)} {label} {typeof value === "number" ? value.toLocaleString("ko-KR") : value}
) } export { DataDisplay } export type { DataDisplayProps }