2023-07-22 13:28:30 +04:00
|
|
|
import {Suspense} from 'react'
|
|
|
|
|
import {notFound} from 'next/navigation'
|
|
|
|
|
import {jwennTeks} from '../../lib/oki-api'
|
|
|
|
|
import TeksDrawer from '../../components/teks/teks-drawer'
|
|
|
|
|
import Loading from './loading'
|
|
|
|
|
|
|
|
|
|
export const metadata = {
|
2026-05-12 18:42:23 +04:00
|
|
|
title: 'PAWÒL-NU. Paroles et traductions.',
|
2023-07-22 13:28:30 +04:00
|
|
|
description: 'Retrouvez les paroles et les traductions de vos chansons préférées.',
|
|
|
|
|
openGraph: {
|
2026-05-12 18:42:23 +04:00
|
|
|
title: 'PAWÒL-NU. Paroles et traductions.',
|
2023-07-22 13:28:30 +04:00
|
|
|
description: 'Retrouvez les paroles et les traductions de vos chansons préférées.',
|
2026-05-12 16:43:39 +04:00
|
|
|
url: 'https://pawol.nu/paroles',
|
2026-05-12 18:42:23 +04:00
|
|
|
siteName: 'PAWÒL-NU. Paroles et traductions.',
|
2023-07-22 13:28:30 +04:00
|
|
|
images: [
|
|
|
|
|
{
|
2026-05-12 16:43:39 +04:00
|
|
|
url: 'https://pawol.nu/logo-512x512.png',
|
2023-07-22 13:28:30 +04:00
|
|
|
width: 512,
|
|
|
|
|
height: 512
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
locale: 'fr_FR',
|
|
|
|
|
type: 'website'
|
|
|
|
|
},
|
|
|
|
|
twitter: {
|
|
|
|
|
site: '@OrganisationKA',
|
|
|
|
|
card: 'summary_large_image',
|
2026-05-12 18:42:23 +04:00
|
|
|
title: 'PAWÒL-NU. Paroles et traductions.',
|
2023-07-22 13:28:30 +04:00
|
|
|
description: 'Retrouvez les paroles et les traductions de vos chansons préférées.',
|
|
|
|
|
creator: '@OrganisationKA',
|
|
|
|
|
images: {
|
2026-05-12 16:43:39 +04:00
|
|
|
url: 'https://pawol.nu/logo-512x512.png',
|
2023-07-22 13:28:30 +04:00
|
|
|
alt: 'OKI Logo',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function jwennDotDone() {
|
|
|
|
|
const teks = await jwennTeks()
|
|
|
|
|
|
|
|
|
|
if (!teks) {
|
|
|
|
|
notFound()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return teks
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default async function PawolLayout({children}) {
|
|
|
|
|
const teks = await jwennDotDone()
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Suspense fallback={<Loading />}>
|
|
|
|
|
<TeksDrawer paroles={teks} />
|
|
|
|
|
</Suspense>
|
|
|
|
|
<section>
|
|
|
|
|
{children}
|
|
|
|
|
</section>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|
}
|