import React, { useState } from 'react' function AccessibilitySection({ accessibility }) { const [expandedViolation, setExpandedViolation] = useState(null) const [filterLevel, setFilterLevel] = useState('all') if (!accessibility) { return (
Accessibility data not available
Accessibility Score
Total Violations
Passed Tests
Manual Review Needed
{impact}
{filterLevel === 'all' ? 'Great job! Your website passed all automated accessibility tests.' : `Try selecting "All Impacts" to see other violation levels.` }
... and {violation.nodes.length - 5} more elements
)}