UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

9 lines (7 loc) 244 B
import { pullFromCache } from '~/cache/api'; export const getChannelMessagePreview = (channelId: string) => { return ( pullFromCache<Amity.InternalMessagePreview>(['messagePreviewChannel', 'get', channelId]) ?.data ?? null ); };