import styles from "./layout.module.css"

import type { LangParams, LayoutArgs } from "@/types/params"

export default function ContentTypeLayout({
  breadcrumbs,
  preview,
  children,
}: React.PropsWithChildren<
  LayoutArgs<LangParams> & {
    breadcrumbs: React.ReactNode
    preview: React.ReactNode
  }
>) {
  return (
    <div className={styles.container}>
      <section className={styles.layout}>
        {preview}
        {breadcrumbs}
        {children}
      </section>
    </div>
  )
}
