All files / web/src/app/embed layout.tsx

0% Statements 0/20
0% Branches 0/1
0% Functions 0/1
0% Lines 0/20

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                         
/**
 * Iframe-safe layout for the `/embed/...` routes.
 *
 * Strips the app's NavBar / shell — these pages are designed to be embedded
 * by chat clients (Twitter Player Card, Discord, Mastodon) inside a small
 * iframe and need to render *only* their featured content with no chrome.
 *
 * The root layout (`app/layout.tsx`) still wraps everything — ClientProviders,
 * fonts, etc. — but no nav, no footer.
 */

import type { Metadata } from 'next'

export const metadata: Metadata = {
  robots: { index: false, follow: false },
}

export default function EmbedLayout({ children }: { children: React.ReactNode }) {
  return <>{children}</>
}