({
label,
required,
hint,
children,
}: {
label: string
required?: boolean
hint?: string
children: React.ReactNode
})
| 208 | } |
| 209 | |
| 210 | function Field({ |
| 211 | label, |
| 212 | required, |
| 213 | hint, |
| 214 | children, |
| 215 | }: { |
| 216 | label: string |
| 217 | required?: boolean |
| 218 | hint?: string |
| 219 | children: React.ReactNode |
| 220 | }) { |
| 221 | return ( |
| 222 | <div> |
| 223 | <label className="text-xs text-white/50 uppercase tracking-wider block mb-1.5"> |
| 224 | {label} {required && <span className="text-red-400/70">*</span>} |
| 225 | </label> |
| 226 | {children} |
| 227 | {hint && <p className="text-[11px] text-white/30 mt-1">{hint}</p>} |
| 228 | </div> |
| 229 | ) |
| 230 | } |
no outgoing calls
no test coverage detected