mirror of https://github.com/langgenius/dify.git
17 lines
371 B
TypeScript
17 lines
371 B
TypeScript
import type { ComponentProps, FC } from 'react'
|
|
import { cn } from '@/utils/classnames'
|
|
|
|
export 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>
|
|
)
|
|
}
|