import React from 'react'; import type { SendbirdMessage } from '@sendbird/uikit-utils'; import PressBox from '../../components/PressBox'; import Text from '../../components/Text'; import useUIKitTheme from '../../theme/useUIKitTheme'; import MessageContainer from './MessageContainer'; import type { OpenChannelMessageProps } from './index'; const UnknownMessage = (props: OpenChannelMessageProps) => { const { colors } = useUIKitTheme(); const { onPress, onLongPress, ...rest } = props; const color = colors.ui.openChannelMessage.default; return ( {({ pressed }) => ( {props.strings?.unknownTitle ?? '(Unknown message type)'} {props.strings?.unknownDescription ?? 'Cannot read this message.'} )} ); }; export default UnknownMessage;