Remove client-side isLoggedIn value
[ProtonMail-WebClient.git] / packages / pass / components / Spotlight / Spotlight.tsx
blobca1face5a0f180b61a622ba147a92f344b8db4ae
1 import type { FC } from 'react';
3 import clsx from '@proton/utils/clsx';
5 import { SpotlightContent } from './SpotlightContent';
6 import { useSpotlight } from './SpotlightProvider';
8 export const Spotlight: FC = () => {
9     const spotlight = useSpotlight();
11     return (
12         <div className="flex-auto w-full">
13             <div className={clsx('anime-reveal', !spotlight.state.open && 'anime-reveal--hidden')}>
14                 {spotlight.state.message && !spotlight.state.message.hidden && (
15                     <SpotlightContent {...spotlight.state.message} />
16                 )}
17             </div>
18         </div>
19     );