"use client"; import { useEffect, useState } from "react"; import { Tab } from "@headlessui/react"; import { AnimatePresence, motion } from "framer-motion"; import { Container } from "./Container"; import { cn } from "@/lib/utils"; const features = [ { title: "Projects", description: "Manage and organize all your projects in one place, keeping detailed track of progress and resource allocation.", image: "/primary/projects.png", }, { title: "Applications & Databases", description: "Centralize control over your applications and databases for enhanced security and efficiency, simplifying access and management across your infrastructure.", image: "/primary/applications.png", }, { title: "Monitoring", description: "Monitor your systems' performance and health in real time, ensuring continuous and uninterrupted operation.", image: "/primary/monitoring.png", }, { title: "Backups", description: "Implement automatic and secure backup solutions to protect your critical data and restore it quickly when necessary.", image: "/primary/backups.png", }, ]; export function PrimaryFeatures() { const [tabOrientation, setTabOrientation] = useState< "horizontal" | "vertical" >("horizontal"); useEffect(() => { const lgMediaQuery = window.matchMedia("(min-width: 1024px)"); function onMediaQueryChange({ matches }: { matches: boolean }) { setTabOrientation(matches ? "vertical" : "horizontal"); } onMediaQueryChange(lgMediaQuery); lgMediaQuery.addEventListener("change", onMediaQueryChange); return () => { lgMediaQuery.removeEventListener("change", onMediaQueryChange); }; }, []); const [isMounted, setIsMounted] = useState(false); // Cambiar isMounted a true después del primer render useEffect(() => { setIsMounted(true); }, []); return (
{/*
*/} {/* */}

Comprehensive Control for Your Digital Ecosystem

Simplify your project and data management, ensure robust monitoring, and secure your backups—all without the fuss over minute details.

{({ selectedIndex }) => ( <>
{features.map((feature, featureIndex) => ( {selectedIndex === featureIndex && ( )}

{feature.title}

))}
{features.map((feature, index) => (

{feature.description}

))} )}
); }