[feat] report 페이지 추가
This commit is contained in:
1 parent
af58b96aff
commit
675cfcab8d
126 files changed
+3642
-1
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import type { CSSProperties, ReactNode } from "react";
|
||||
|
||||
export type InfoStatCardProps = {
|
||||
icon: ReactNode;
|
||||
label: string;
|
||||
value: ReactNode;
|
||||
className?: string;
|
||||
style?: CSSProperties;
|
||||
};
|
||||
|
||||
export function InfoStatCard({ icon, label, value, className = "", style }: InfoStatCardProps) {
|
||||
return (
|
||||
<div
|
||||
className={`rounded-2xl bg-white border border-neutral-20 shadow-sm p-5 animate-fade-in-up ${className}`.trim()}
|
||||
style={style}
|
||||
>
|
||||
<div className="flex items-start gap-3">
|
||||
<div className="shrink-0 w-8 h-8 rounded-lg bg-neutral-10 flex items-center justify-center text-neutral-60">
|
||||
{icon}
|
||||
</div>
|
||||
<div className="min-w-0">
|
||||
<p className="label-12 text-neutral-60 uppercase tracking-wide break-keep">{label}</p>
|
||||
<p className="title-18 text-navy-900 mt-1 break-keep">{value}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user