The useParams hook returns an object of key-value pairs where the key is the parameter name and the value is the parameter value.