How to add extra useparams id url in specific content type id?

I want to add something like this offertshirt/{id} and with a regular url it works, if I do like this e.g "https://schoolsitedemo/eventsblogs/{id}" but with contentful content type id, I don’t find a way to include. Help me

[github code:] (https://github.com/Alidhuniya/devT-shirt-React-with-Contentful)

In one of demo I passed useparams in regular URL and it works. here is demo site