import { Collection, CustomizationSettings, 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; collection: Collection | null; collectionSpaces: Space[]; customization: CustomizationSettings; }) { const { space, collection, customization } = props; return (