github.com/argoproj/argo-cd/v2@v2.10.9/ui/src/app/applications/components/pod-logs-viewer/pod-names-toggle-button.tsx (about) 1 import * as React from 'react'; 2 import {ToggleButton} from '../../../shared/components/toggle-button'; 3 4 // PodNamesToggleButton is a component that renders a toggle button that toggles pod names. 5 export const PodNamesToggleButton = ({viewPodNames, setViewPodNames}: {viewPodNames: boolean; setViewPodNames: (value: boolean) => void}) => ( 6 <ToggleButton title='Show pod names' onToggle={() => setViewPodNames(!viewPodNames)} toggled={viewPodNames} icon='box' /> 7 );