import { MetaSysProps } from '../common-types' ; export const isPublished = ( data ) => ! ! data . sys . publishedVersion ; export const isUpdated = ( data ) => { return ! ! ( data . sys . publishedVersion && data . sys . version > data . sys . publishedVersion + 1 ) ; } ; export const isDraft = ( data ) => ! data . sys . publishedVersion ; export const isArchived = ( data ) => ! ! data . sys . archivedVersion ;