Pergunta de entrevista da empresa Agrilution

Can you make this into another react component instead of repeating it?