--- export interface Props { date: string title: string link: string image: string user?: string ta_servant?: string turns?: string } const { turns, ta_servant, user, date, image, link, title } = Astro.props const options_date: Intl.DateTimeFormatOptions = { year: 'numeric', month: '2-digit', day: '2-digit', } const formatted_date = new Date(date).toLocaleDateString('de-DE', options_date) const icon: string = `background: url('/assets/ta_icons/${image}.webp')` const servant: string = `/assets/ta_icons/ta_servants/${ta_servant}.webp` let hasuser = '' if (user !== undefined) { hasuser = 'hasuser' } --- {title} By {user} • {formatted_date} {turns}
By {user} • {formatted_date}