aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/LogoContext/types.ts
blob: ff7f6445d01f0b4eae855b19802d622298eaf52b (plain) (blame)
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
import type { ReactNode } from "react";
import { TurboSite } from "../SiteSwitcher";

type MenuItemType = "internal" | "external" | "copy";

export interface MenuItemProps extends ContextItem {
  closeMenu?: () => void;
  className?: string;
}

export interface ContextList {
  theme: string;
  site: TurboSite;
}

export interface ContextItem {
  name: string;
  "aria-label": string;
  disabled?: boolean;
  type: MenuItemType;
  children: ReactNode;
  prefix: ReactNode;
  href?: string;
  onClick?: () => void;
}