返回 AiToEarn
KwaiParams.tsx
1 import type { ForwardedRef } from 'react'
2 import type {
3 IPlatsParamsProps,
4 IPlatsParamsRef,
5 } from '@/components/PublishDialog/compoents/PlatParamsSetting/plats/plats.type'
6 import { forwardRef, memo } from 'react'
7 import usePlatParamsCommon from '@/components/PublishDialog/compoents/PlatParamsSetting/hooks/usePlatParamsCoomon'
8 import PubParmasTextarea from '@/components/PublishDialog/compoents/PubParmasTextarea'
9
10 const KwaiParams = memo(
11 forwardRef(
12 (
13 { pubItem, isMobile }: IPlatsParamsProps,
14 ref: ForwardedRef<IPlatsParamsRef>,
15 ) => {
16 const { pubParmasTextareaCommonParams } = usePlatParamsCommon(
17 pubItem,
18 isMobile,
19 )
20
21 return (
22 <>
23 <PubParmasTextarea {...pubParmasTextareaCommonParams} />
24 </>
25 )
26 },
27 ),
28 )
29
30 export default KwaiParams
31
31 lines Plain Text