import Head from 'next/head'; type Props = { title: string; description?: string; imgUrl?: string; }; const BASE_URL = process.env.NEXT_PUBLIC_URL ?? 'https://iket.me'; const BASE_TITLE = process.env.NEXT_PUBLIC_TITLE ?? 'libremdb'; const Meta = ({ title, description = 'libremdb, a free & open source IMDb front-end.', imgUrl = 'icon.svg', }: Props) => { const url = new URL(imgUrl, BASE_URL); return ( {`${title} - ${BASE_TITLE}`} ); }; export default Meta;