From 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 3 Nov 2023 21:13:33 +0800 Subject: chore: delete useless codes --- docs/components/LogoContext/items.tsx | 91 ----------------------------------- 1 file changed, 91 deletions(-) delete mode 100644 docs/components/LogoContext/items.tsx (limited to 'docs/components/LogoContext/items.tsx') diff --git a/docs/components/LogoContext/items.tsx b/docs/components/LogoContext/items.tsx deleted file mode 100644 index 3d15c01..0000000 --- a/docs/components/LogoContext/items.tsx +++ /dev/null @@ -1,91 +0,0 @@ -import { - VercelLogo, - TurborepoLogo, - TurbopackLogo, - IconType, - NextJSLogo, - DesignSystemLogo, -} from "./icons"; -import type { ContextItem, ContextList } from "./types"; -import copy from "copy-to-clipboard"; - -export const PLATFORM_MENU_ITEMS = ({ - theme, -}: ContextList): Array => [ - { - name: "copy-logo", - "aria-label": "Copy Logo as SVG to Clipboard", - children: "Copy Logo as SVG", - prefix: , - type: "copy", - onClick: () => { - copy( - ` - - ` - ); - }, - }, - { - name: "copy-wordmark", - "aria-label": "Copy Wordmark as SVG to Clipboard", - children: "Copy Wordmark as SVG", - prefix: , - type: "copy", - onClick: () => { - copy( - // NOTE: We include `xmlns` as this is required when the SVG isn't inlined. - `` - ); - }, - }, - { - name: "brand-guidelines", - "aria-label": "Open Brand Guidelines in New Tab", - children: "Brand Guidelines", - prefix: , - type: "external", - href: "https://vercel.com/design/brands", - }, -]; - -export const PRODUCT_MENU_ITEMS = ({ - site, -}: ContextList): Array => [ - { - name: "next-js", - "aria-label": "Open Next.js Home in New Tab", - children: "Next.js", - prefix: , - type: "external", - href: "https://nextjs.org", - }, - { - name: "HydroRollAI", - "aria-label": "Open Turborepo Home in New Tab", - disabled: site === "AI", - children: "HydroRollAI", - prefix: , - type: "internal", - href: "/AI", - }, - { - name: "HydroRollTRPG", - "aria-label": "Open Turbopack Home in New Tab", - disabled: site === "TRPG", - children: "HydroRollTRPG", - prefix: , - type: "internal", - href: "/TRPG", - }, -]; -- cgit v1.2.3-70-g09d2