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}
); }