export const isTextPost = post => {
  if (post && post.data && typeof post.data !== 'string' && 'text' in post.data) return true;
  return false;
};
export const isStreamPost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'streamId' in post.data);
};
export const isFilePost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'fileId' in post.data);
};
export const isImagePost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'fileId' in post.data && post.dataType === 'image');
};
export const isVideoPost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'videoFileId' in post.data);
};
export const isPollPost = post => {
  return !!(post && post.data && typeof post.data !== 'string' && 'pollId' in post.data);
};
//# sourceMappingURL=postType.js.map