import { css } from '@emotion/react'; import { theme, DocsLogo } from '@expo/styleguide'; import { spacing } from '@expo/styleguide-base'; import { ArrowLeftIcon, GraduationHat02DuotoneIcon, Stars02DuotoneIcon, Home02DuotoneIcon, BookOpen02DuotoneIcon, } from '@expo/styleguide-icons'; import { shouldShowFeaturePreviewLink } from '~/constants/FeatureFlags.cjs'; import { Search } from '~/ui/components/Search'; import { SidebarSingleEntry } from '~/ui/components/Sidebar/SidebarSingleEntry'; import { A } from '~/ui/components/Text'; type SidebarHeadProps = { sidebarActiveGroup: string; }; export const SidebarHead = ({ sidebarActiveGroup }: SidebarHeadProps) => { if (sidebarActiveGroup === 'archive') { return (
Back
); } return (
{shouldShowFeaturePreviewLink() && ( )}
); }; const sidebarHeadContainerStyle = css({ display: 'flex', flexDirection: 'column', padding: spacing[4], borderBottom: `1px solid ${theme.border.default}`, background: theme.background.default, gap: spacing[0.5], }); const sidebarBackLinkStyle = css({ color: theme.text.secondary, display: 'flex', gap: spacing[3], alignItems: 'center', });