import { useState } from 'react';
import Button from '../ui/Button';
import Modal from '../ui/Modal';
const SCANNER_TIPS = [
{ lead: 'Good lighting', body: 'avoid glare on foil cards.' },
{ lead: 'Fill the frame', body: 'with one card; keep corners visible.' },
{ lead: 'Hold still', body: 'until Auto-detect locks the match.' },
{ lead: 'Use Batch Scan', body: 'for a pile of photos from your gallery.' },
{ lead: 'Switch camera', body: 'if the image is dark or mirrored.' },
];
function LightbulbIcon() {
return (
);
}
export default function ScannerTips({ className = '' }) {
const [open, setOpen] = useState(false);
return (
<>
}
onClick={() => setOpen(true)}
>
Scanner Tips
setOpen(false)}
title="Scanner Tips"
size="md"
>
{SCANNER_TIPS.map((tip) => (
-
{tip.lead}
{' — '}
{tip.body}
))}
>
);
}