Rocket.Chat.ReactNative/app/containers/MessageComposer/MessageComposerContainer.tsx

14 lines
525 B
TypeScript
Raw Normal View History

2024-01-25 14:11:07 +00:00
import React, { ReactElement, forwardRef } from 'react';
import { MessageComposerProvider } from './context';
import { IMessageComposerContainerProps, IMessageComposerRef } from './interfaces';
import { MessageComposer } from './MessageComposer';
export const MessageComposerContainer = forwardRef<IMessageComposerRef, IMessageComposerContainerProps>(
({ children }, ref): ReactElement => (
<MessageComposerProvider>
<MessageComposer forwardedRef={ref}>{children}</MessageComposer>
</MessageComposerProvider>
)
);