--- import type { Fragment } from '../../lib/types'; interface Props { fragment: Fragment; avatar?: string; } const { fragment: f, avatar } = Astro.props; const domain = new URL(f.url!).hostname.replace(/^www\./, ''); const dateStr = new Date(f.createdAt).toISOString().slice(0, 10); ---