'use client'

import { Button } from '@/components/ui/controls'

/**
 * Hands the page to the browser's print dialogue (§86).
 *
 * The print stylesheet already turns the console into a document — white ground, black
 * text, chrome hidden — so "save as PDF" is one keystroke away without shipping a PDF
 * renderer to every visitor.
 */
export function PrintButton({ label }: { label: string }) {
  return (
    <Button variant="secondary" size="sm" onClick={() => window.print()}>
      {label}
    </Button>
  )
}
