2023-07-22 13:28:30 +04:00
|
|
|
import {Suspense} from 'react'
|
2026-07-04 14:34:50 +04:00
|
|
|
import PropTypes from 'prop-types'
|
2026-07-04 00:03:22 +04:00
|
|
|
import TeksDrawerLoader from '../../components/teks/teks-drawer-loader'
|
2026-07-03 22:22:11 +04:00
|
|
|
import {CurrentTrackProvider} from '../../components/teks/current-track-context'
|
2023-07-22 13:28:30 +04:00
|
|
|
import Loading from './loading'
|
|
|
|
|
|
2026-06-26 00:34:04 +04:00
|
|
|
const siteName = process.env.NEXT_PUBLIC_SITE_NAME || 'PAWÒL-NU. Paroles et traductions.'
|
|
|
|
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://pawol.nu'
|
|
|
|
|
const twitterHandle = `@${process.env.NEXT_PUBLIC_TWITTER_USERNAME || 'OrganisationKA'}`
|
|
|
|
|
|
2023-07-22 13:28:30 +04:00
|
|
|
export const metadata = {
|
2026-06-26 00:34:04 +04:00
|
|
|
title: siteName,
|
2023-07-22 13:28:30 +04:00
|
|
|
description: 'Retrouvez les paroles et les traductions de vos chansons préférées.',
|
|
|
|
|
openGraph: {
|
2026-06-26 00:34:04 +04:00
|
|
|
title: siteName,
|
2023-07-22 13:28:30 +04:00
|
|
|
description: 'Retrouvez les paroles et les traductions de vos chansons préférées.',
|
2026-06-26 00:34:04 +04:00
|
|
|
url: `${siteUrl}/paroles`,
|
|
|
|
|
siteName,
|
2023-07-22 13:28:30 +04:00
|
|
|
images: [
|
|
|
|
|
{
|
2026-06-26 00:34:04 +04:00
|
|
|
url: `${siteUrl}/logo-512x512.png`,
|
2023-07-22 13:28:30 +04:00
|
|
|
width: 512,
|
|
|
|
|
height: 512
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
locale: 'fr_FR',
|
|
|
|
|
type: 'website'
|
|
|
|
|
},
|
|
|
|
|
twitter: {
|
2026-06-26 00:34:04 +04:00
|
|
|
site: twitterHandle,
|
2023-07-22 13:28:30 +04:00
|
|
|
card: 'summary_large_image',
|
2026-06-26 00:34:04 +04:00
|
|
|
title: siteName,
|
2023-07-22 13:28:30 +04:00
|
|
|
description: 'Retrouvez les paroles et les traductions de vos chansons préférées.',
|
2026-06-26 00:34:04 +04:00
|
|
|
creator: twitterHandle,
|
2023-07-22 13:28:30 +04:00
|
|
|
images: {
|
2026-06-26 00:34:04 +04:00
|
|
|
url: `${siteUrl}/logo-512x512.png`,
|
|
|
|
|
alt: `${siteName} Logo`,
|
2023-07-22 13:28:30 +04:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-04 00:03:22 +04:00
|
|
|
export default function PawolLayout({children}) {
|
2023-07-22 13:28:30 +04:00
|
|
|
return (
|
2026-07-03 22:22:11 +04:00
|
|
|
<CurrentTrackProvider>
|
2023-07-22 13:28:30 +04:00
|
|
|
<Suspense fallback={<Loading />}>
|
2026-07-04 00:03:22 +04:00
|
|
|
<TeksDrawerLoader />
|
2023-07-22 13:28:30 +04:00
|
|
|
</Suspense>
|
|
|
|
|
<section>
|
|
|
|
|
{children}
|
|
|
|
|
</section>
|
2026-07-03 22:22:11 +04:00
|
|
|
</CurrentTrackProvider>
|
2023-07-22 13:28:30 +04:00
|
|
|
)
|
|
|
|
|
}
|
2026-07-04 14:34:50 +04:00
|
|
|
|
|
|
|
|
PawolLayout.propTypes = {
|
|
|
|
|
children: PropTypes.node.isRequired
|
|
|
|
|
}
|