import Link from 'next/link'; import type { TrialNotice } from '@/lib/billing'; function formatDate(value: Date) { return value.toLocaleDateString('en-US', { month: 'long', day: 'numeric' }); } /** * The trial deadline, said once at the top of the app. * * The `ended` case is the one that matters: access stops at the trial's end date * but nothing is deleted for another fifteen days, and an account that is not * told this reads a locked workspace as lost work. So the deletion date is * stated as reassurance rather than as a threat. */ export function TrialBanner({ notice }: { notice: TrialNotice }) { const isEnded = notice.kind === 'ended'; return (