mirror of
https://github.com/fiatjaf/nak.git
synced 2024-10-30 09:09:08 -04:00
20 lines
373 B
JavaScript
20 lines
373 B
JavaScript
import React from 'react'
|
|
|
|
export default function Item({label, hint, children}) {
|
|
return (
|
|
<div
|
|
style={{
|
|
marginBottom: '9px',
|
|
whiteSpace: 'pre-wrap',
|
|
wordWrap: 'break-word',
|
|
wordBreak: 'break-all'
|
|
}}
|
|
>
|
|
<b data-wenk={hint} data-wenk-pos="right">
|
|
{label}:{' '}
|
|
</b>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|