2023-12-15 17:34:50 +03:00
|
|
|
interface LabeledValueProps {
|
2023-07-18 14:55:40 +03:00
|
|
|
id?: string
|
|
|
|
label: string
|
2023-07-26 23:11:00 +03:00
|
|
|
text: string | number
|
2023-12-18 19:42:27 +03:00
|
|
|
title?: string
|
2023-07-18 14:55:40 +03:00
|
|
|
}
|
|
|
|
|
2023-12-18 19:42:27 +03:00
|
|
|
function LabeledValue({ id, label, text, title }: LabeledValueProps) {
|
2023-07-18 14:55:40 +03:00
|
|
|
return (
|
2023-12-15 17:34:50 +03:00
|
|
|
<div className='flex justify-between gap-3'>
|
2023-12-05 01:22:44 +03:00
|
|
|
<label
|
|
|
|
className='font-semibold'
|
2023-12-18 19:42:27 +03:00
|
|
|
title={title}
|
2023-12-05 01:22:44 +03:00
|
|
|
htmlFor={id}
|
|
|
|
>
|
|
|
|
{label}
|
|
|
|
</label>
|
|
|
|
<span id={id}>
|
|
|
|
{text}
|
|
|
|
</span>
|
|
|
|
</div>);
|
2023-07-18 14:55:40 +03:00
|
|
|
}
|
|
|
|
|
2023-12-15 17:34:50 +03:00
|
|
|
export default LabeledValue;
|