/* eslint-disable @next/next/no-img-element */ 'use client' import { useState, useRef, useEffect } from 'react' import { Transition } from '@headlessui/react' import CONFIG from '../config' import LazyImage from '@/components/LazyImage' import { siteConfig } from '@/lib/config' // import FeaturesElement from '@/public/images/features-element.png' export default function Features() { const [tab, setTab] = useState(1) const tabs = useRef(null) const heightFix = () => { if (tabs.current && tabs.current.parentElement) tabs.current.parentElement.style.height = `${tabs.current.clientHeight}px` } useEffect(() => { heightFix() }, []) return (
{/* Section background (needs .relative class on parent and next sibling elements) */}
{/* Section header */}

{siteConfig('LANDING_FEATURES_HEADER_1', null, CONFIG)}

{/* Section content */}
{/* Content */}

{siteConfig('LANDING_FEATURES_HEADER_2', null, CONFIG)}

{siteConfig('LANDING_FEATURES_HEADER_2_P', null, CONFIG)}

{/* Tabs buttons */}
{/* Tabs items */}
{/* Item 1 */} heightFix()} unmount={false} >
{/* Item 2 */} heightFix()} unmount={false} >
{/* Item 3 */} heightFix()} unmount={false} >
) }