mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
* feat(video): generate transcripts with the local embedding server * feat(video): show saved transcripts in the player * fix(video): preserve transcript seek timestamps * fix(video): refine transcript viewing and generation * feat(video): resize transcripts and follow playback earlier * fix(video): animate transcript playback scrolling * fix(video): transcribe from the smallest full proxy * fix(video): refine the sync to playback button * feat(video): edit transcript segment text inline * fix(video): keep transcript segment highlighted over edit button * docs(video): note embedding server version for transcripts
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,
|
|
}
|
|
}
|