Files
front-AT/app/Components/Global/Information/information.tsx
T
2025-10-02 01:41:41 -06:00

22 lines
489 B
TypeScript

interface InformationProps {
[key: string]: string | number | undefined;
}
export default function Information(props: InformationProps) {
const entries = Object.entries(props).filter(([_, value]) => value !== undefined);
if (entries.length === 0) return null;
return (
<div className="information">
<ul>
{entries.map(([key, value]) => (
<li key={key}>
<b>{key}: </b>{value}
</li>
))}
</ul>
</div>
);
}
//IO