UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

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