Files
front-AT/app/Components/Global/Information/information.tsx
T

22 lines
489 B
TypeScript
Raw Normal View History

2025-09-03 20:41:25 -04:00
interface InformationProps {
[key: string]: string | number | undefined;
}
export default function Information(props: InformationProps) {
const entries = Object.entries(props).filter(([_, value]) => value !== undefined);
2025-10-02 01:41:41 -06:00
if (entries.length === 0) return null;
2025-09-03 20:41:25 -04:00
return (
<div className="information">
<ul>
{entries.map(([key, value]) => (
<li key={key}>
<b>{key}: </b>{value}
</li>
))}
</ul>
</div>
);
2025-10-02 01:41:41 -06:00
}
2025-09-18 21:12:50 -06:00
//IO