try this
const { siteUrl } = useParams<{ name: string }>()
or just remove the Promise from params type definition
params: { siteUrl: string }