mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 14:34:40 +00:00
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
import { useServerFeatures } from './use-server-features'
|
|
|
|
export interface ArchiveConfig {
|
|
archiveStorageEnabled: boolean
|
|
isLoading: boolean
|
|
}
|
|
|
|
export function useArchiveConfig(): ArchiveConfig {
|
|
const { data, isLoading } = useServerFeatures()
|
|
|
|
return {
|
|
archiveStorageEnabled: Boolean(data?.archiveStorageEnabled),
|
|
isLoading,
|
|
}
|
|
}
|