mirror of https://github.com/langgenius/dify.git
13 lines
343 B
TypeScript
13 lines
343 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>
|
|
}
|