Home / Function/ ShowUntil() — supabase Function Reference

ShowUntil() — supabase Function Reference

Architecture documentation for the ShowUntil() function in ShowUntil.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/docs/features/ui/ShowUntil.tsx lines 3–12

export function ShowUntil({ children, date }: { children: ReactNode; date: string }) {
  const currentDate = new Date()
  const untilDate = new Date(date)

  if (isNaN(untilDate.getTime()) || currentDate < untilDate) {
    return <>{children}</>
  } else {
    return null
  }
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free