import PropTypes from 'prop-types'
import Head from 'next/head'
import Navigasyon from './navigasyon'
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000'
const apiUrl = process.env.NEXT_PUBLIC_API_URL_ROOT || 'http://localhost:1337'
export default function HeadLayout({
children,
imageUrl,
imageWidth,
imageHeight,
imageMime,
title,
tab,
slug,
summary
}) {
return (
{`${title ? `OKI | ${title}` : 'OKI | Organisation KA Internationale. Paroles et traductions.'}`}
{children}
)
}
HeadLayout.propTypes = {
children: PropTypes.node.isRequired,
imageUrl: PropTypes.string,
imageWidth: PropTypes.number,
imageHeight: PropTypes.number,
imageMime: PropTypes.string,
title: PropTypes.string,
tab: PropTypes.number.isRequired,
slug: PropTypes.string,
summary: PropTypes.string
}
HeadLayout.defaultProps = {
imageUrl: null,
imageWidth: null,
imageHeight: null,
imageMime: null,
title: null,
slug: null,
summary: null
}