import * as React from "react"; import { cn } from "./lib/utils"; export interface ReceiptPrinterProps { lines: string[]; total?: string; autoFeed?: boolean; className?: string; } export function ReceiptPrinter({ lines = [], total, autoFeed = true, className }: ReceiptPrinterProps) { return (
{lines.map((line, i) => (
{line}
))} {total && (
Total: {total}
)}
{autoFeed && (
)}
); }