// module state instead of a route param so the deep-linkable
// /screengrab route can't be fed arbitrary file uris or urls
export type PendingShare =
  | {kind: 'image'; uri: string}
  | {kind: 'url'; url: string}

let pending: PendingShare | null = null

export const setPendingShare = (share: PendingShare) => {
  pending = share
}
export const getPendingShare = () => pending
export const clearPendingShare = () => {
  pending = null
}
