import Link from "next/link"
import type { ReactNode } from "react"

type BoardLayoutProps = {
  title: string
  description: string
  children: ReactNode
}

export default function BoardLayout({
  title,
  description,
  children,
}: BoardLayoutProps) {
  return (
    <section className="mx-auto max-w-[1200px] px-6 pb-20">
      <Link
        href="/pro/data-boards"
        className="mb-6 inline-block text-[13px] text-[var(--color-accent)] hover:underline"
      >
        &larr; Data Boards
      </Link>
      <h1 className="font-serif text-3xl font-normal text-[var(--color-text-primary)]">
        {title}
      </h1>
      <p className="mt-1 text-sm text-[var(--color-text-secondary)]">
        {description}
      </p>
      {children}
    </section>
  )
}
