import NextHead from 'next/head'; import type { PropsWithChildren } from 'react'; type HeadProps = PropsWithChildren<{ title?: string; description?: string }>; const BASE_TITLE = 'Expo Documentation'; const BASE_DESCRIPTION = `Expo is an open-source platform for making universal native apps for Android, iOS, and the web with JavaScript and React.`; const Head = ({ title, description, children }: HeadProps) => ( {title ? `${title} - ${BASE_TITLE}` : BASE_TITLE} {children} ); export default Head;