mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 08:04:37 +00:00
feat(webui): allow generating transcripts from video detail panel (#564)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import { client } from '@/ui/api/client'
|
||||
|
||||
export function useServerFeatures() {
|
||||
export function useServerFeatures(enabled = true) {
|
||||
return useQuery({
|
||||
queryKey: ['signup-info'],
|
||||
enabled,
|
||||
queryFn: async () => {
|
||||
const res = await client.api['signup-info'].$get()
|
||||
if (!res.ok) return null
|
||||
|
||||
Reference in New Issue
Block a user