'use client' import { useId } from 'react' import Image, { type ImageProps } from 'next/image' import { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@headlessui/react' import clsx from 'clsx' import { Container } from '@/components/Container' import screenshotContacts from '@/images/screenshots/contacts.png' import screenshotInventory from '@/images/screenshots/inventory.png' import screenshotProfitLoss from '@/images/screenshots/profit-loss.png' interface Feature { name: React.ReactNode summary: string description: string image: ImageProps['src'] icon: React.ComponentType } const features: Array = [ { name: 'Reporting', summary: 'Stay on top of things with always up-to-date reporting features.', description: 'We talked about reporting in the section above but we needed three items here, so mentioning it one more time for posterity.', image: screenshotProfitLoss, icon: function ReportingIcon() { let id = useId() return ( <> ) }, }, { name: 'Inventory', summary: 'Never lose track of what’s in stock with accurate inventory tracking.', description: 'We don’t offer this as part of our software but that statement is inarguably true. Accurate inventory tracking would help you for sure.', image: screenshotInventory, icon: function InventoryIcon() { return ( <> ) }, }, { name: 'Contacts', summary: 'Organize all of your contacts, service providers, and invoices in one place.', description: 'This also isn’t actually a feature, it’s just some friendly advice. We definitely recommend that you do this, you’ll feel really organized and professional.', image: screenshotContacts, icon: function ContactsIcon() { return ( <> ) }, }, ] function Feature({ feature, isActive, className, ...props }: React.ComponentPropsWithoutRef<'div'> & { feature: Feature isActive: boolean }) { return (

{feature.name}

{feature.summary}

{feature.description}

) } function FeaturesMobile() { return (
{features.map((feature) => (
))}
) } function FeaturesDesktop() { return ( {({ selectedIndex }) => ( <> {features.map((feature, featureIndex) => ( {feature.name} ), }} isActive={featureIndex === selectedIndex} className="relative" /> ))}
{features.map((feature, featureIndex) => (
))}
)} ) } export function SecondaryFeatures() { return (

Simplify everyday business tasks.

Because you’d probably be a little confused if we suggested you complicate your everyday business tasks instead.

) }