import React from "react"; // next imports import Link from "next/link"; // layouts import { DefaultLayout } from "layouts"; // components import Page from "@components/page"; import Hero from "@components/pricing/Hero"; import CloudPricing from "@components/pricing/Pricing"; import Enterprise from "@components/pricing/Enterprise"; import Community from "@components/pricing/Community"; import Table from "@components/pricing/Table"; // constants import { META_DESCRIPTION } from "@constants/page"; const HomePage = () => { const meta = { title: "Plane | Pricing", description: META_DESCRIPTION }; const [state, setState] = React.useState("cloud"); const Tabs = [ { name: "Cloud", key: "cloud" }, { name: "Self-hosted", key: "hosted" } ]; return (
{Tabs.map((tab, index) => (
setState(tab.key)} className={`${ state === tab.key ? "text-gradient" : "text-[#8B8B8B]" } cursor-pointer`} >

{tab.name}

{state === tab.key && (
)}
))}
{state === "cloud" ? (
{/* */} ) : (
{/*
*/} )} ); }; export default HomePage;