diff options
| author | 2023-04-22 19:52:26 +0800 | |
|---|---|---|
| committer | 2023-04-22 19:52:26 +0800 | |
| commit | 4838df315931bb883f704ec3e1abe2685f296cdf (patch) | |
| tree | 57a8550c4cd5338f1126364bb518c6cde8d96e7d /docs/components/LogoContext/types.ts | |
| parent | db74ade0234a40c2120ad5f2a41bee50ce13de02 (diff) | |
| download | HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip | |
😀
Diffstat (limited to 'docs/components/LogoContext/types.ts')
| -rw-r--r-- | docs/components/LogoContext/types.ts | 25 |
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; +} |
