mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
18 lines
362 B
TypeScript
18 lines
362 B
TypeScript
interface LabeledValueProps {
|
|
id?: string;
|
|
label: string;
|
|
text: string | number;
|
|
title?: string;
|
|
}
|
|
|
|
function LabeledValue({ id, label, text, title }: LabeledValueProps) {
|
|
return (
|
|
<div className='flex justify-between gap-3'>
|
|
<span title={title}>{label}</span>
|
|
<span id={id}>{text}</span>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default LabeledValue;
|