import React from 'react' ; import useFetcher from '@/hooks/useFetcher' ; import RecommendReadings from './Recommend' ; import { getHomeInfo } from '@/services/global' ; import { notificationHandler } from '@/services/utils/errorHandler' ; const Home = ( ) => { const [ homeInfo ] = useFetcher ( getHomeInfo , { fail : notificationHandler , } ) ; if ( homeInfo === null ) { return null ; } return ( < > { } < RecommendReadings recommendationReading = { homeInfo . recommendationReading } / > < />); } ; export default Home ;