import { readListIndex } from '@kbn/securitysolution-list-api' ; import { useAsync , withOptionalSignal } from '@kbn/securitysolution-hook-utils' ; const readListIndexWithOptionalSignal = withOptionalSignal ( readListIndex ) ; export const useReadListIndex = ( ) => useAsync ( readListIndexWithOptionalSignal ) ;