import * as React from 'react'; import Button from '../Button'; import { FlexCenter } from '../shared/Styled'; const { useRef, useEffect } = React; type Props = { onClickPrimaryButton?: () => void; onClickSecondaryButton?: () => void; }; export function ClosePrevConns({ onClickPrimaryButton, onClickSecondaryButton }: Props) { const primaryButtonRef = useRef(null); const secondaryButtonRef = useRef(null); useEffect(() => { primaryButtonRef.current.focus(); }, []); const handleKeyDown = (e: React.KeyboardEvent) => { if (e.keyCode === 39) { secondaryButtonRef.current.focus(); } else if (e.keyCode === 37) { primaryButtonRef.current.focus(); } }; return ( // eslint-disable-next-line jsx-a11y/no-static-element-interactions

Close Connections?

Click 'Yes' to close those connections that are still using the old selected proxy in this group

); }