Dejo el codigo correcto a continuación:
import { useState, useEffect } from 'react'
import "../assets/css/blog.css"
import { buscar } from '../api/api'
const Categoria = () => {
return (
<>
<div className='container'>
<h2 className='title-page'>Pet Noticias</h2>
</div>
</>
)
}
export default Categoria