(defcomp
  (&key section filename)
  (let-match
    {:defines defines :title title :comment comment}
    section
    (div
      (~tw :tokens "mb-6")
      (h2
        (~tw
          :tokens "text-base font-semibold text-stone-600 mb-2 border-b border-stone-200 pb-1")
        :id (replace (lower title) " " "-")
        title)
      (when comment (p (~tw :tokens "text-sm text-stone-500 mb-2") comment))
      (div
        (~tw :tokens "space-y-0.5")
        (map
          (fn
            (d)
            (~specs-explorer/spec-explorer-define :d d :filename filename))
          defines)))))
