Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
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>
|
|
}
|