22 lines
633 B
TypeScript
22 lines
633 B
TypeScript
/**
|
|
* EXPORT-1: Datenexport-Karte (auf /einstellungen) — lädt GET /export als Zip.
|
|
* Schlichter Anker-Download (kein fetch/Blob nötig); der Server setzt
|
|
* Content-Disposition mit Datumsdateinamen.
|
|
*/
|
|
import { API_BASE_URL } from '../api/client'
|
|
import { de } from '../strings/de'
|
|
|
|
export default function DatenexportCard() {
|
|
const t = de.pages.datenexport
|
|
return (
|
|
<section>
|
|
<h3>{t.title}</h3>
|
|
<p className="muted">{t.intro}</p>
|
|
<p className="muted">{t.photoNote}</p>
|
|
<a className="btn btn--primary" href={`${API_BASE_URL}/export`} download>
|
|
{t.button}
|
|
</a>
|
|
</section>
|
|
)
|
|
}
|