import React, { useState } from 'react';
import { ReferenceDataStatus } from '../api/types';
import { formatDate, formatNumber } from '../lib/format';
import { CodeCheckDialog } from './CodeCheckDialog';
/**
* The chapters in scope (06–08, 22, 61–62, 84–85) hold about 5 800 TARIC
* positions. Anything far below that is the demo seed, and a pack checked
* against it comes back red for reasons that have nothing to do with the pack.
*/
const REAL_NOMENCLATURE_FLOOR = 1000;
export function Header({ status }: { status: ReferenceDataStatus | null }) {
const [checkOpen, setCheckOpen] = useState(false);
return (