import { makeRemoteLoadSurveyResult , makeRemoteSaveSurveyResult } from '@/main/factories/usecases' ; import { SurveyResult } from '@/presentation/pages' ; import { useParams } from 'react-router-dom' ; import React from 'react' ; export const makeSurveyResult = ( ) => { type Props = { id : string ; } ; const { id } = useParams < Props > ( ) ; return ( < SurveyResult loadSurveyResult = { makeRemoteLoadSurveyResult ( id ) } saveSurveyResult = { makeRemoteSaveSurveyResult ( id ) } / > ) ; } ;