mirror of
https://github.com/langgenius/dify.git
synced 2026-07-23 20:18:40 +08:00
14 lines
351 B
TypeScript
14 lines
351 B
TypeScript
import type { ComponentProps, FC } from 'react'
|
|
import { cn } from '@langgenius/dify-ui/cn'
|
|
|
|
type FormattedTextProps = ComponentProps<'p'>
|
|
|
|
export const FormattedText: FC<FormattedTextProps> = (props) => {
|
|
const { className, ...rest } = props
|
|
return (
|
|
<p {...rest} className={cn('leading-7', className)}>
|
|
{props.children}
|
|
</p>
|
|
)
|
|
}
|