import { Collection, CustomizationSettings, Site, SiteCustomizationSettings, Space, } from '@gitbook/api'; import React from 'react'; import { t } from '@/intl/server'; import { getSpaceLanguage } from '@/intl/server'; import { tcls } from '@/lib/tailwind'; import { HeaderLogo } from './HeaderLogo'; import { SearchButton } from '../Search'; /** * Header to display on top of the table of contents when the space has no header configured. */ export function CompactHeader(props: { space: Space; parent: Site | Collection | null; spaces: Space[]; customization: CustomizationSettings | SiteCustomizationSettings; }) { const { space, parent, customization } = props; return (