+
+
+
+
+ {social.map(s => (
+
+ {s.platform}
+ { await fetch(`/api/admin/kontakt/social/${s.id}`, { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ url: e.target.value }) }) }} />
+
+
+ ))}
+
+ setNewSocial(p => ({ ...p, platform: e.target.value }))} placeholder="Instagram" />
+ setNewSocial(p => ({ ...p, url: e.target.value }))} placeholder="https://…" />
+
+
+
+
+
+ {zeiten.map(z => (
+
+ { await fetch(`/api/admin/kontakt/oeffnungszeiten/${z.id}`, { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ tag: e.target.value }) }) }} />
+ { await fetch(`/api/admin/kontakt/oeffnungszeiten/${z.id}`, { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ von: e.target.value }) }) }} placeholder="8:00" />
+ { await fetch(`/api/admin/kontakt/oeffnungszeiten/${z.id}`, { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ bis: e.target.value }) }) }} placeholder="18:00" />
+
+
+ ))}
+
+ setNewZeit(p => ({ ...p, tag: e.target.value }))} placeholder="Montag – Freitag" />
+ setNewZeit(p => ({ ...p, von: e.target.value }))} placeholder="8:00" />
+ setNewZeit(p => ({ ...p, bis: e.target.value }))} placeholder="18:00" />
+
+
+