This is the error of NewsCard class. It seem problem with the parameter "data"
Type '({ data }: NewsCardProps) => Element | undefined' is not assignable to type 'FC'.
Type 'Element | undefined' is not assignable to type 'ReactElement<any, any> | null'.
Type 'undefined' is not assignable to type 'ReactElement<any, any> | null'.t