Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
955 Bytes
import React from 'react';
import { Header, Profiles } from '../components';
import * as ROUTES from '../constants/routes';
import logo from '../logo.svg';
export function SelectProfileContainer({ user, setProfile }) {
return (
<>
<Header bg={false}>
<Header.Frame>
<Header.Logo to={ROUTES.HOME} src={logo} alt="Netflix" />
</Header.Frame>
</Header>
<Profiles>
<Profiles.Title>Who is Watching ?</Profiles.Title>
<Profiles.List>
<Profiles.User
onClick={() => setProfile({ displayName: user.displayName, photoURL: user.photoURL })}
data-testid="user-profile"
>
<Profiles.Picture src={user.photoURL} />
<Profiles.Name>{user.displayName}</Profiles.Name>
</Profiles.User>
</Profiles.List>
</Profiles>
</>
);
}