Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
425 B · 19 lines
TSX
at main
1234567891011121314151617181920import React from 'react'
interface PostProgressState { progress: number status: 'pending' | 'success' | 'error' | 'idle' error?: string}
const PostProgressContext = React.createContext<PostProgressState>({ progress: 0, status: 'idle',})PostProgressContext.displayName = 'PostProgressContext'
export function Provider() {}
export function usePostProgress() { return React.useContext(PostProgressContext)}