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();
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} />