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/Feature.tsx | 88 --------------------------------------------- 1 file changed, 88 deletions(-) delete mode 100644 docs/components/Feature.tsx (limited to 'docs/components/Feature.tsx') diff --git a/docs/components/Feature.tsx b/docs/components/Feature.tsx deleted file mode 100644 index 1a8a8b2..0000000 --- a/docs/components/Feature.tsx +++ /dev/null @@ -1,88 +0,0 @@ -import classNames from "classnames"; -import Link from "next/link"; -import type { Feature } from "../content/legacy-features"; - -type FeatureProps = { - feature: Omit; - // include feature description - detailed?: boolean; -}; - -const DetailedFeatureInner = (props: { feature: FeatureProps["feature"] }) => { - const { Icon, name, description } = props.feature; - return ( - <> -
-
-
-

- {name} -

-
-
-

- {description} -

-
- - - ); -}; - -const featureWrapperClasses = `relative block overflow-hidden p-10 bg-white shadow-lg rounded-xl dark:bg-opacity-5 no-underline text-black dark:text-white`; - -export const DetailedFeatureLink = (props: { - href: string; - feature: FeatureProps["feature"]; - target?: string; -}) => { - const { href, feature, ...rest } = props; - return ( - - - - ); -}; - -export default function Feature(props: FeatureProps) { - const { feature, detailed = false } = props; - const { Icon, name } = feature; - - if (detailed) { - return ( -
- -
- ); - } - - return ( -
-
-
-
-
{name}
-
-
- ); -} -- cgit v1.2.3-70-g09d2