import type { Metadata } from 'next';

export const metadata: Metadata = {
  title: 'YouTube Comments Viewer - Browse Video Comments | YTToolkits',
  description: 'Browse, search, and analyze YouTube video comments without distractions. Filter by top liked, newest, or search specific keywords. Free comment explorer tool.',
  keywords: 'youtube comments viewer, browse youtube video comments, search youtube comments, view all youtube comments, youtube comment searcher, read youtube comments online, find specific youtube comment, export youtube comments, see top liked youtube comments, view pinned comment youtube, search comments by keyword youtube, youtube comment explorer, youtube comment extractor, distraction free youtube comment reader, filter youtube comments by likes, view youtube replies, browse comments without video, search youtube comment history, find funny youtube comments, extract youtube comment threads, analyze youtube discussion, free youtube comments viewer, youtube comments viewer online, youtube comments viewer for pc, youtube comments viewer for mac, youtube comments viewer for windows, youtube comments viewer for linux, youtube comments viewer for android, youtube comments viewer for iphone, youtube comments viewer for ipad, youtube comments viewer for ios, youtube comments viewer for chrome, youtube comments viewer for firefox, youtube comments viewer for edge, youtube comments viewer for safari, youtube comments viewer fast, youtube comments viewer safe, youtube comments viewer secure, youtube comments viewer no ads, youtube comments viewer no registration, youtube comments viewer no watermark, best youtube comments viewer, top comment browser tool, free online comments viewer, browse comments without software, yt comments viewer, yt comment search, yt comment reader, yt comment extractor, youtube comments viewer app, youtube comments viewer software, youtube comments viewer extension, youtube comments viewer plugin, youtube comments viewer apk, youtube comments viewer for windows 10, youtube comments viewer for windows 11, youtube comments viewer for mac free, youtube comments viewer for linux free, youtube comments viewer online free, youtube comments viewer without ads, youtube comments viewer without registration, youtube comments viewer web, youtube comments viewer website, youtube comments viewer site, youtube comments viewer tool, youtube comments viewer service, youtube comments viewer application, youtube comments viewer for browser, youtube comments viewer for chrome extension, youtube comments viewer for android apk, youtube comments viewer for ios app, youtube comments viewer for iphone app, youtube comments viewer for ipad app, youtube comments viewer fast and free, youtube comments viewer safe and free, youtube comments viewer secure and free, youtube comments viewer no ads and free, youtube comments viewer no registration and free, youtube comments viewer safe and secure, youtube comments viewer safe and no ads, youtube comments viewer safe and no registration, youtube comments viewer online and safe, youtube comments viewer for pc and safe, youtube comments viewer for mac and safe, youtube comments viewer for android and safe, youtube comments viewer for iphone and safe, youtube comments viewer online free no registration, youtube comments viewer online free no ads, youtube comments viewer online free fast, youtube comments viewer online free safe, youtube comments viewer 2026, browse youtube video comments 2026, search youtube comments 2026, view all youtube comments 2026, youtube comments viewer online 2026, free youtube comments viewer 2026, best youtube comments viewer 2026, youtube comments viewer for pc 2026, youtube comments viewer for android 2026, youtube comments viewer for iphone 2026, youtube comments viewer no ads 2026, youtube comments viewer safe 2026, youtube comments viewer fast 2026, yt comments viewer 2026, youtube comments viewer app 2026, youtube comments viewer software 2026, youtube comments viewer extension 2026, youtube comments viewer apk 2026, youtube comments viewer for windows 2026, youtube comments viewer for mac 2026, youtube comments viewer 2027, browse youtube video comments 2027, search youtube comments 2027, view all youtube comments 2027, youtube comments viewer online 2027, free youtube comments viewer 2027, best youtube comments viewer 2027, youtube comments viewer for pc 2027, youtube comments viewer for android 2027, youtube comments viewer for iphone 2027, youtube comments viewer no ads 2027, youtube comments viewer safe 2027, youtube comments viewer fast 2027, yt comments viewer 2027, youtube comments viewer app 2027, youtube comments viewer software 2027, youtube comments viewer extension 2027, youtube comments viewer apk 2027, youtube comments viewer for windows 2027, youtube comments viewer for mac 2027, youtube comments viewer 2028, browse youtube video comments 2028, search youtube comments 2028, view all youtube comments 2028, youtube comments viewer online 2028, free youtube comments viewer 2028, best youtube comments viewer 2028, youtube comments viewer for pc 2028, youtube comments viewer for android 2028, youtube comments viewer for iphone 2028, youtube comments viewer no ads 2028, youtube comments viewer safe 2028, youtube comments viewer fast 2028, yt comments viewer 2028, youtube comments viewer app 2028, youtube comments viewer software 2028, youtube comments viewer extension 2028, youtube comments viewer apk 2028, youtube comments viewer for windows 2028, youtube comments viewer for mac 2028, youtube comments viewer 2029, browse youtube video comments 2029, search youtube comments 2029, view all youtube comments 2029, youtube comments viewer online 2029, free youtube comments viewer 2029, best youtube comments viewer 2029, youtube comments viewer for pc 2029, youtube comments viewer for android 2029, youtube comments viewer for iphone 2029, youtube comments viewer no ads 2029, youtube comments viewer safe 2029, youtube comments viewer fast 2029, yt comments viewer 2029, youtube comments viewer app 2029, youtube comments viewer software 2029, youtube comments viewer extension 2029, youtube comments viewer apk 2029, youtube comments viewer for windows 2029, youtube comments viewer for mac 2029, youtube comments viewer 2030, browse youtube video comments 2030, search youtube comments 2030, view all youtube comments 2030, youtube comments viewer online 2030, free youtube comments viewer 2030, best youtube comments viewer 2030, youtube comments viewer for pc 2030, youtube comments viewer for android 2030, youtube comments viewer for iphone 2030, youtube comments viewer no ads 2030, youtube comments viewer safe 2030, youtube comments viewer fast 2030, yt comments viewer 2030, youtube comments viewer app 2030, youtube comments viewer software 2030, youtube comments viewer extension 2030, youtube comments viewer apk 2030, youtube comments viewer for windows 2030, youtube comments viewer for mac 2030, youtube comments viewer 2031, browse youtube video comments 2031, youtube comments viewer online 2031, free youtube comments viewer 2031, best youtube comments viewer 2031, youtube comments viewer for pc 2031, youtube comments viewer for android 2031, youtube comments viewer for iphone 2031, yt comments viewer 2031, youtube comments viewer 2032, browse youtube video comments 2032, youtube comments viewer online 2032, free youtube comments viewer 2032, best youtube comments viewer 2032, youtube comments viewer for pc 2032, youtube comments viewer for android 2032, youtube comments viewer for iphone 2032, yt comments viewer 2032, youtube comments viewer 2033, browse youtube video comments 2033, youtube comments viewer online 2033, free youtube comments viewer 2033, best youtube comments viewer 2033, youtube comments viewer for pc 2033, youtube comments viewer for android 2033, youtube comments viewer for iphone 2033, yt comments viewer 2033, youtube comments viewer 2034, browse youtube video comments 2034, youtube comments viewer online 2034, free youtube comments viewer 2034, best youtube comments viewer 2034, youtube comments viewer for pc 2034, youtube comments viewer for android 2034, youtube comments viewer for iphone 2034, yt comments viewer 2034, youtube comments viewer 2035, browse youtube video comments 2035, youtube comments viewer online 2035, free youtube comments viewer 2035, best youtube comments viewer 2035, youtube comments viewer for pc 2035, youtube comments viewer for android 2035, youtube comments viewer for iphone 2035, yt comments viewer 2035, youtube comments viewer 2026 and beyond, youtube comments viewer 2027 and beyond, youtube comments viewer 2028 and beyond, youtube comments viewer 2029 and beyond, youtube comments viewer 2030 and beyond, youtube comments viewer 2026-2030, youtube comments viewer 2026-2035, youtube comments viewer upcoming years, youtube comments viewer future years, youtube comments viewer next year, youtube comments viewer latest version 2026, youtube comments viewer latest version 2027, youtube comments viewer latest version 2028, youtube comments viewer latest version 2029, youtube comments viewer latest version 2030, youtube comments viewer updated 2026, youtube comments viewer updated 2027, youtube comments viewer updated 2028, youtube comments viewer updated 2029, youtube comments viewer updated 2030, youtube comments viewer new 2026, youtube comments viewer new 2027, youtube comments viewer new 2028, youtube comments viewer new 2029, youtube comments viewer new 2030',
  openGraph: {
    title: 'YouTube Comments Viewer - Browse Video Comments | YTToolkits',
    description: 'Browse, search, and analyze YouTube video comments without distractions. Filter by top liked, newest, or search specific keywords. Free comment explorer tool.',
    url: 'https://yttoolkits.site/comments-viewer',
    siteName: 'YTToolkits',
    locale: 'en_US',
    type: 'website',
  },
  twitter: {
    card: 'summary_large_image',
    title: 'YouTube Comments Viewer - Browse Video Comments | YTToolkits',
    description: 'Browse, search, and analyze YouTube video comments without distractions. Filter by top liked, newest, or search specific keywords. Free comment explorer tool.',
  },
  alternates: {
    canonical: 'https://yttoolkits.site/comments-viewer',
  },
};

export default function Layout({ children }: { children: React.ReactNode }) {
  const schemaOrg = {
    '@context': 'https://schema.org',
    '@graph': [
      {
        '@type': 'SoftwareApplication',
        name: 'YTToolkits YouTube Comments Viewer',
        operatingSystem: 'All',
        applicationCategory: 'SocialNetworkingApplication',
        offers: {
          '@type': 'Offer',
          price: '0',
          priceCurrency: 'USD',
        },
        aggregateRating: {
          '@type': 'AggregateRating',
          ratingValue: '4.9',
          ratingCount: '1870',
        },
        description: 'Free online tool to search, sort, and browse YouTube video comments, user replies, and like counts with zero distractions.',
      },
      {
        '@type': 'HowTo',
        name: 'How to Browse and Search YouTube Comments',
        step: [
          {
            '@type': 'HowToStep',
            name: 'Copy YouTube Video Link',
            text: 'Copy the URL of the YouTube video whose comments you want to explore.',
          },
          {
            '@type': 'HowToStep',
            name: 'Paste URL',
            text: 'Paste the link into the YouTube Comments Viewer search bar.',
          },
          {
            '@type': 'HowToStep',
            name: 'Fetch Comments',
            text: 'Click Fetch Comments to retrieve comment threads, author info, and engagement counts.',
          },
          {
            '@type': 'HowToStep',
            name: 'Filter or Search by Keyword',
            text: 'Sort comments by top liked, newest, or search for specific words and phrases within the comment list.',
          },
        ],
      },
      {
        '@type': 'FAQPage',
        mainEntity: [
          {
            '@type': 'Question',
            name: 'Can I search for specific words inside YouTube comments?',
            acceptedAnswer: {
              '@type': 'Answer',
              text: 'Yes! The Comments Viewer lets you type any search word or phrase to immediately find matching comments across thousands of responses, something not easily possible in the native YouTube interface.',
            },
          },
          {
            '@type': 'Question',
            name: 'Can I view replies to comments?',
            acceptedAnswer: {
              '@type': 'Answer',
              text: 'Yes, full comment threads including nested user replies and creator hearts are loaded and accessible.',
            },
          },
          {
            '@type': 'Question',
            name: 'Is the Comments Viewer free to use?',
            acceptedAnswer: {
              '@type': 'Answer',
              text: 'Yes, YTToolkits YouTube Comments Viewer is 100% free with no limits on the number of videos or comments searched.',
            },
          },
        ],
      },
      {
        '@type': 'BreadcrumbList',
        itemListElement: [
          { '@type': 'ListItem', position: 1, name: 'Home', item: 'https://yttoolkits.site' },
          { '@type': 'ListItem', position: 2, name: 'Tools', item: 'https://yttoolkits.site/tools' },
          { '@type': 'ListItem', position: 3, name: 'Comments Viewer', item: 'https://yttoolkits.site/comments-viewer' },
        ],
      },
    ],
  };

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(schemaOrg) }}
      />
      {children}
    </>
  );
}
