import { enterpriseSession } from '../../lib/api'
import { Empty } from '../../components/ui/bits'
import { findEnterprise, reasonCodesFor, tripWiresFor } from '../../lib/demo/enterprises'
import { alertForEnterprise } from '../../lib/demo/ops'
import { inr, monthRef } from '../../lib/demo/seed'
import { useLang } from '../../lib/i18n'
/**
* Alert history for the owner. Same reason codes the officer sees, but only
* ever as plain sentences — no scores, no model vocabulary, nothing that reads
* like a credit rating handed to the borrower.
*/
export function AppAlertsPage() {
const session = enterpriseSession()
const { lang, t } = useLang('hi')
const hi = lang === 'hi'
const e = session ? findEnterprise(session.enterpriseId) : undefined
if (!session || !e) return
{t('home.allGoodDetail')}
{hi ? 'अपने फ़ील्ड अधिकारी से बात करें — किस्त की तारीख़ कमाई के मौसम से मिलाई जा सकती है।' : 'Speak to your field officer — the instalment date can be aligned to your earning season.'}