aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/LogoContext/types.ts
diff options
context:
space:
mode:
authorHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
committerHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
commit4838df315931bb883f704ec3e1abe2685f296cdf (patch)
tree57a8550c4cd5338f1126364bb518c6cde8d96e7d /docs/components/LogoContext/types.ts
parentdb74ade0234a40c2120ad5f2a41bee50ce13de02 (diff)
downloadHydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz
HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip
😀
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;
+}