import type { ReactNode } from 'react' import Link from 'next/link' import { ArrowLeft, FolderGit2 } from 'lucide-react' import { Button } from '@/components/ui/button' /* Terminal lines — each renders one line incl. trailing newline inside
 */

export function Cmd({ children }: { children: ReactNode }) {
  return (
    <>
      $ {children}{'\n'}
    
  )
}

export function Out({ children }: { children: ReactNode }) {
  return (
    <>
      {children}{'\n'}
    
  )
}

export function Err({ children }: { children: ReactNode }) {
  return (
    <>
      {children}{'\n'}
    
  )
}

export function Code({ children }: { children: ReactNode }) {
  return (
    <>
      {children}{'\n'}
    
  )
}

export function Cursor() {
  return (
    <>
      ${' '}
      
    
  )
}

type ErrorPageProps = {
  code: number
  label: string
  title: string
  children: ReactNode
  terminal: ReactNode
  tip: ReactNode
}

export function ErrorPage({ code, label, title, children, terminal, tip }: ErrorPageProps) {
  return (
    
{/* Fly.io-style gradient mesh background (dark mode only) */}
{/* Subtle grid overlay */}
{/* Logo */}
Jamulix
{/* Text Content */}
Fehler {code} · {label}

{title}

{children}

{/* Terminal */}
jamulix@jamulix.de: ~
                  {terminal}
                  
                

{tip}

) }