The `withAuthenticator` is a higher-order component (HoC) that wraps `Authenticator`. You'll also notice the `user` and `signOut` are provided to the wrapped component. **Usage** ```ts import { Amplify } from 'aws-amplify'; import type { WithAuthenticatorProps } from '@aws-amplify/ui-react'; import { withAuthenticator } from '@aws-amplify/ui-react'; import '@aws-amplify/ui-react/styles.css'; import awsconfig from '../aws-exports'; Amplify.configure(awsconfig); export function App({ signOut, user }: WithAuthenticatorProps) { return ( <>

Hello {user?.username}

); } export default withAuthenticator(App); ```
```js import { Amplify } from 'aws-amplify'; import { withAuthenticator } from '@aws-amplify/ui-react'; import '@aws-amplify/ui-react/styles.css'; import awsExports from './aws-exports'; Amplify.configure(awsExports); function App({ signOut, user }) { return ( <>

Hello {user.username}

); } export default withAuthenticator(App); ```