File size: 1,313 Bytes
f55c62a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
51
52
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
import Image from 'next/image';
import { DonateIconButton } from '@/components/donate-button';
import { SiDiscord } from 'react-icons/si';

export const gitConfig = {
  user: 'Viren070',
  repo: 'AIOStreams',
  branch: 'main',
};

export function baseOptions(): BaseLayoutProps {
  return {
    nav: {
      title: (
        <>
          <span className="relative inline-flex h-6 w-6 shrink-0">
            <Image
              src="/logo-light.png"
              alt="AIOStreams"
              fill
              className="object-contain transition-opacity duration-300 dark:opacity-0"
            />
            <Image
              src="/logo-dark.png"
              alt=""
              fill
              className="object-contain transition-opacity duration-300 opacity-0 dark:opacity-100"
            />
          </span>
          AIOStreams
        </>
      ),
    },
    githubUrl: `https://github.com/${gitConfig.user}/${gitConfig.repo}`,
    links: [
      {
        type: 'icon',
        text: 'Discord',
        url: 'https://discord.viren070.me',
        icon: <SiDiscord />,
        external: true,
      },
      {
        type: 'custom',
        secondary: true,
        children: <DonateIconButton />,
      },
    ],
  };
}