EXPORT-1: Datenexport-Karte auf /einstellungen (Anker-Download, deutsche Erklaertexte + Foto-Hinweis)
This commit is contained in:
21
gerbil-manager-web/src/components/DatenexportCard.tsx
Normal file
21
gerbil-manager-web/src/components/DatenexportCard.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user