import React , { FC , useContext } from 'react' ; import { CustomUrls } from '../../../../../../../../jobs_list/components/edit_job_flyout/tabs/custom_urls' ; import { UrlConfig } from '../../../../../../../../../../../common/types/custom_urls' ; import { JobCreatorContext } from '../../../../../job_creator_context' ; import { Description } from './description' ; import { CombinedJob } from '../../../../../../../../../../../common/types/anomaly_detection_jobs' ; export const CustomUrlsSelection = ( ) => { const { jobCreator , jobCreatorUpdate } = useContext ( JobCreatorContext ) ; const setCustomUrls = ( customUrls ) => { jobCreator . customUrls = customUrls ; jobCreatorUpdate ( ) ; } ; const combinedJob = { ... jobCreator . jobConfig , datafeed_config : jobCreator . datafeedConfig , } ; return ( < Description > < CustomUrls job = { combinedJob } jobCustomUrls = { jobCreator . customUrls ?? [ ] } setCustomUrls = { setCustomUrls } editMode = "modal" / > < /Description>); } ;