const buildDate = process.env.NEXT_PUBLIC_BUILD_DATE
  ? new Date(process.env.NEXT_PUBLIC_BUILD_DATE).toLocaleDateString('nl-NL', {
      day: 'numeric',
      month: 'short',
      year: 'numeric',
    })
  : '—'

const version = process.env.NEXT_PUBLIC_APP_VERSION ?? '0.0.0'

export function StatusBar() {
  return (
    <footer className="shrink-0 border-t border-border bg-surface-container-low h-14 px-4 flex items-center justify-between text-sm text-muted-foreground select-none">
      <span>© {new Date().getFullYear()} Scrum4Me</span>
      <span>v{version} · gebouwd op {buildDate}</span>
    </footer>
  )
}
