import React from "react";
import clsx from "clsx";
import styles from "./styles.module.css";
import CodeFrame from "../CodeFrame";
import Button from "../Button";
import CodeBlock from "@theme/CodeBlock";
import Frame from "../Frame";
import { FeatureItem } from "./feature-item";
import { ReadyFeatures } from "./ready-features";
import { ComingSoonFeatures } from "./coming-soon-features";
const bgAndShadows = [
{
bg: "bg-violet-200",
shadow: "shadow-neocyan",
button: "yellow",
},
{
bg: "bg-yellow-200",
shadow: "shadow-neoviolet",
button: "cyan",
},
{
bg: "bg-green-200",
shadow: "shadow-neoyellow",
button: "violet",
},
];
function Feature({ n, title, showcase, description, buttonText }: FeatureItem) {
const k = n ?? 0;
const reverse = k % 2 === 0 ? "xl:flex-row" : "xl:flex-row-reverse";
const { bg, shadow, button } = bgAndShadows[k % bgAndShadows.length];
const showcaseComponent =
"code" in showcase ? (
//
{description}