Rechtliches: Seite mit Rechtstexten und Anbieter-Vertraegen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
31be2af4c3
commit
67b9439145
9 files changed
+492
-1
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import { fileUrl, fileDownloadUrl } from '../../hooks/useLegal'
|
||||
|
||||
/** Heutiges Datum in Ortszeit als 'YYYY-MM-DD'. */
|
||||
export function todayIso() {
|
||||
return new Date().toLocaleDateString('sv-SE')
|
||||
}
|
||||
|
||||
export function FileLinks({ fileIds = [], fileNames = {} }) {
|
||||
if (!fileIds.length) return <span className="faint">keine Datei</span>
|
||||
return (
|
||||
<span className="legal-files">
|
||||
{fileIds.map((id) => (
|
||||
<span key={id}>
|
||||
<a href={fileUrl(id)} target="_blank" rel="noreferrer">{fileNames[id] || 'Datei'}</a>
|
||||
{' '}
|
||||
<a href={fileDownloadUrl(id)} className="faint">(herunterladen)</a>
|
||||
</span>
|
||||
))}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user