mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 05:05:53 +08:00

Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
24 lines
444 B
TypeScript
24 lines
444 B
TypeScript
'use client'
|
|
import type { FC } from 'react'
|
|
import React from 'react'
|
|
|
|
type Props = {
|
|
className?: string
|
|
label: string
|
|
children: React.ReactNode
|
|
}
|
|
|
|
const Field: FC<Props> = ({
|
|
className,
|
|
label,
|
|
children,
|
|
}) => {
|
|
return (
|
|
<div className={className}>
|
|
<div className='system-sm-semibold py-1 text-text-secondary'>{label}</div>
|
|
<div className='mt-1'>{children}</div>
|
|
</div>
|
|
)
|
|
}
|
|
export default React.memo(Field)
|