Files
supabase/apps/studio/components/layouts/AppLayout/StatusPageBanner.tsx
T
Charis 6168ddc0c1 fix(studio): remove incident banner automation (#42664)
* **Refactor**
* Status banner now displays only ongoing incidents, no longer shows
maintenance events
  * Removed persistent banner dismissal state
2026-02-11 20:47:57 +00:00

31 lines
734 B
TypeScript

import { useFlag } from 'common'
import { HeaderBanner } from '@/components/interfaces/Organization/HeaderBanner'
import { InlineLink } from '@/components/ui/InlineLink'
const BANNER_DESCRIPTION = (
<>
Follow the <InlineLink href="https://status.supabase.com">status page</InlineLink> for updates
</>
)
/**
* Used to display ongoing incidents
*/
export const StatusPageBanner = () => {
const showIncidentBanner =
useFlag('ongoingIncident') || process.env.NEXT_PUBLIC_ONGOING_INCIDENT === 'true'
if (showIncidentBanner) {
return (
<HeaderBanner
variant="warning"
title="We are investigating a technical issue"
description={BANNER_DESCRIPTION}
/>
)
}
return null
}