Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 1,426 Bytes
c1f12bf bb4f86a c1f12bf 59f9b88 c1f12bf 59f9b88 c1f12bf bb4f86a c1f12bf 4cd0916 59f9b88 c1f12bf bb4f86a 59f9b88 4cd0916 9a9fd5a 5566043 d079437 cdd4011 c1f12bf 57224ff c1f12bf 57224ff 59f9b88 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
import { cn } from '@aitube/timeline'
import { Menubar } from '@/components/ui/menubar'
import { APP_REVISION } from '@/lib/core/constants'
import { useUI, useResolver } from '@/services'
import { TopMenuFile } from './file'
import { TopMenuEdit } from './edit'
import { TopMenuImage } from './image'
import { TopMenuVideo } from './video'
import { TopMenuVoice } from './voice'
import { TopMenuSound } from './sound'
import { TopMenuMusic } from './music'
import { TopMenuAssistant } from './assistant'
import { TopMenuView } from './view'
import { TopMenuLogo } from './TopMenuLogo'
import { TopMenuPlugins } from './plugins'
export function TopMenu() {
const isBusyResolving = useResolver((s) => s.isBusyResolving)
const hasBetaAccess = useUI((s) => s.hasBetaAccess)
return (
<Menubar className="ml-1 w-full">
<TopMenuLogo />
<TopMenuFile />
{hasBetaAccess && <TopMenuEdit />}
<TopMenuImage />
<TopMenuVideo />
<TopMenuVoice />
<TopMenuSound />
<TopMenuMusic />
<TopMenuAssistant />
<TopMenuPlugins />
<TopMenuView />
<div
className={cn(
`pointer-events-none flex flex-grow flex-row items-center justify-end px-2 text-xs text-stone-300`
)}
>
{
// clap?.meta?.title || "Untitled"
}
<span className="text-stone-500">{APP_REVISION}</span>
</div>
</Menubar>
)
}
|