mirror of
https://github.com/rustfs/console.git
synced 2026-11-02 13:42:10 +08:00
14 lines
222 B
TypeScript
14 lines
222 B
TypeScript
export interface LoadingBarApi {
|
|
start: () => void
|
|
finish: () => void
|
|
error: () => void
|
|
}
|
|
|
|
const noop = () => {}
|
|
|
|
export const useLoadingBar = (): LoadingBarApi => ({
|
|
start: noop,
|
|
finish: noop,
|
|
error: noop,
|
|
})
|