wixLocation() error message

Hi,

I have a problem with wixLocation() function. I’ve got an error that 'cannot find name wixLocation. But it shouldn’t be a name but a function, should it be?

My code and a picture:

export function overimage_click ( event ) {

       console . log ( event . context . itemId ); 

       **if**  ( event . context . itemId  ===  "abc-xyz-qrs..." ) { 

           wixLocation . to ( "/xyz" ) 

           
       } 

}

Any help will be appreciated. Thanks.

Update:
It was my mistake. I did not include the

import wixLocation from ‘wix-location’ ;

in the beginning of my code.
Thanks.

Thanks Marlowe (Wix)! :blush::heart_eyes::kissing_heart: