import { memo } from 'react'; import { BoltIcon, EyeIcon, EyeSlashIcon } from '@heroicons/react/24/outline'; export interface ShowHideAllProps { showAll: () => void; hideAll: () => void; showAffected: () => void; hasAffected: boolean; label: string; } export const ShowHideAll = memo( ({ showAll, hideAll, showAffected, hasAffected, label, }: ShowHideAllProps): JSX.Element => { return (