Without this the merchant backend will refuse to create new
orders.
),
}}
/>
);
}
function KycBanner(): VNode {
const kycStatus = useInstanceKYCDetails();
const { i18n } = useTranslationContext();
// const today = format(new Date(), dateFormatForSettings(settings));
const [prefs, updatePref] = usePreference();
const now = AbsoluteTime.now();
const needsToBeShown =
kycStatus !== undefined &&
!(kycStatus instanceof TalerError) &&
kycStatus.type === "ok" &&
!!kycStatus.body;
const hidden = AbsoluteTime.cmp(now, prefs.hideKycUntil) < 1;
if (hidden || !needsToBeShown) return ;
const oneDay = { d_ms: 1000 * 60 * 60 * 24 };
const tomorrow = AbsoluteTime.addDuration(now, oneDay);
return (
Some transfer are on hold until a KYC process is completed. Go
to the KYC section in the left panel for more information
),
}}
/>
);
}