aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/LogoContext/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'docs/components/LogoContext/types.ts')
-rw-r--r--docs/components/LogoContext/types.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/components/LogoContext/types.ts b/docs/components/LogoContext/types.ts
new file mode 100644
index 0000000..ff7f644
--- /dev/null
+++ b/docs/components/LogoContext/types.ts
@@ -0,0 +1,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;
+}