use object key as key for another object

I want to create a type in type script and use values of another object for it keys

const routes = {
home: "HOME",
profile: "PROFILE"
}

export type NavigatorParamList = {
  [routes.home]: undefined;
  [routes.profile]: undefined;
};

I knew that this code is not working!
any idea how to do it?