import { Button, View } from '@aws-amplify/ui-react'; import { useNavigateAction } from '@aws-amplify/ui-react/internal'; export const NavigateActions = () => { const goToAmazon = useNavigateAction({ type: 'url', url: '/ui/hooks/actions?pageChange', }); const reload = useNavigateAction({ type: 'reload', }); const goToHash = useNavigateAction({ type: 'anchor', anchor: '#notes', }); const handleHashClick = () => { console.log('Run handleHasClick'); goToHash(); }; return ( notes ); };