import { useQuery } from 'react-query' ; import { useKibana } from '../common/lib/kibana' ; export const useActionResultsPrivileges = ( ) => { const { http } = useKibana ( ) . services ; return useQuery ( [ 'actionResultsPrivileges' ] , ( ) => http . get ( '/internal/osquery/privileges_check' ) , { keepPreviousData : true , } ) ; } ;