import React, { useState } from 'react'; import { FiBluetooth, FiChevronRight, FiWifi, FiX } from 'react-icons/fi'; import { VictoryChart, VictoryLine, VictoryPolarAxis, VictoryTheme, } from 'victory'; import { Tab, Transition } from '@headlessui/react'; import type { IDevice } from '@site/src/data/device'; import { Modal } from '../Modal'; import { VariantSelectButton } from './VariantSelectButton'; export interface HardwareModal { device: IDevice; open: boolean; close: () => void; } export const HardwareModal = ({ device, open, close, }: HardwareModal): JSX.Element => { const colors = ['#428517', '#77D200', '#D6D305', '#EC8E19', '#C92B05']; const [hideDetails, setHideDetails] = useState(false); return (
{ setHideDetails(!hideDetails); }} className="m-auto flex cursor-pointer rounded-full bg-secondary p-2 shadow-md hover:bg-tertiary" >
{!hideDetails && (
{device.features.BLE && (
Bluetooth
)} {device.features.WiFi && (
WiFi
)}
)}
<>
`w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ selected ? 'bg-secondary shadow-md' : '' }` } > Info `w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ selected ? 'bg-secondary shadow-md' : '' }` } > Power `w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ selected ? 'bg-secondary shadow-md' : '' }` } > Pinout Content 1 ''} /> {[5, 4, 3, 2, 1].map((val, i) => { return ( val * (1 - Math.cos(d.x))} /> ); })} Content 3
); };