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