import {CheckCircleIcon, XCircleIcon} from "@heroicons/react/24/solid"; import {Bug, ChevronDown, Circle} from "lucide-react"; import {useState} from "react"; import Card from "components/ui/card"; import Accordion from "components/accordion"; const SpeedInsightGroup = ({ title, success = false,items = []}: { title: string success?: boolean items?: Audit[] }) => { const [isOpen, setIsOpen] = useState(false) const AuditIcon = ({icon} : {icon: string}) => { if (icon === 'pass') { return ( ) } if (icon === 'average') { return ( ) } return ( ) } const AuditPill = () => { } return (
{ setIsOpen(p => !p)}} className='select-none flex justify-between w-full items-center py-2.5 px-4'>
{title}
{!success ? (
{items.length} audits
) : (
{items.length} audits
)}
{items.length > 0 && ( )}
{items.map(i => (
{i.name} {/*{i?.files?.items?.length > 0 && (*/} {/* */} {/* Files: {i.files.items.length} Score: {i.score}*/} {/* */} {/*)}*/}
)).slice(0, 3)}
) } export default SpeedInsightGroup