INNER CODE UNIT · JavaScript
AccessCluster
infrahq/infra · ui/pages/destinations/[id]/index.js:606
function AccessCluster({ roles, resource }) {
const [commandCopied, setCommandCopied] = useState(false)
const command = `infra login ${window.location.host} \ninfra use ${resource} \nkubectl get pods`
return (
<div className='w-full flex-1'>
<div className='mx-6 mt-4 mb-1 flex items-center justify-between text-sm'>
<h1 className='flex items-center font-semibold'>Access cluster</h1>
<a
target='_blank'
href='https://infrahq.com/docs/install/install-infra-cli'
className='flex items-center text-xs font-medium text-gray-300 hover:text-gray-400'
rel='noreferrer'
>
<ArrowDownTrayIcon className='mr-1 h-3.5 w-3.5' />
Infra CLI
</a>