import { Metadata } from 'next'; import { Container } from '@/components/ui/Container'; import { Layout } from '@/components/layout/Layout'; import { Card, CardHeader, CardBody } from '@/components/ui/Card'; import { Button } from '@/components/ui/Button'; import Link from 'next/link'; export const metadata: Metadata = { title: 'Subpage Example | KLZ Cables', description: 'Example subpage demonstrating breadcrumb functionality', }; export default function Subpage({ params: { locale } }: { params: { locale: string } }) { // Breadcrumb configuration const breadcrumb = [ { title: 'Example', path: `/${locale}/example` }, { title: 'Subpage', path: `/${locale}/example/subpage` } ]; return (
{/* Page Header */}

Subpage with Breadcrumb

This page demonstrates the breadcrumb functionality in the Layout component. Notice the breadcrumb navigation above this content area.

{/* Content */}

Breadcrumb Features

  • Automatic breadcrumb generation based on current URL
  • Clickable links for all parent pages
  • Current page shown as non-clickable text
  • Responsive design that works on all screen sizes
  • Optional feature - only shown when breadcrumb prop is provided
{/* Navigation */}
{/* Code Example */}

How to Use Breadcrumbs

                {`// In your page component:
import { Layout } from '@/components/layout/Layout';

export default function MyPage({ params: { locale } }) {
  const breadcrumb = [
    { title: 'Home', path: \`/\${locale}\` },
    { title: 'Products', path: \`/\${locale}/products\` },
    { title: 'Details', path: \`/\${locale}/products/123\` }
  ];

  return (
    
      {/* Your content */}
    
  );
}`}
              
); }