1234567891011121314151617181920212223242526 |
- 'use client'
- import type { FC } from 'react'
- import { format } from '@/service/base'
- import React from 'react'
- export type ITextGenerationProps = {
- value: string
- className?: string
- }
- const TextGeneration: FC<ITextGenerationProps> = ({
- value,
- className,
- }) => {
- return (
- <div
- className={className}
- dangerouslySetInnerHTML={{
- __html: format(value)
- }}
- >
- </div>
- )
- }
- export default React.memo(TextGeneration)
|