mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
22 lines
758 B
TypeScript
22 lines
758 B
TypeScript
import { IconAlertCircle } from 'ui'
|
|
|
|
const WarningBanner = ({ title, description }: { title: string; description?: string }) => {
|
|
return (
|
|
<div className="rounded bg-yellow-900 px-6 py-3">
|
|
<div className="flex flex-row gap-4">
|
|
<div className="mt-1 text-yellow-1100 dark:text-yellow-800">
|
|
<IconAlertCircle size={14} strokeWidth={2} />
|
|
</div>
|
|
<div className="flex flex-col items-start gap-x-3 xl:flex-row xl:items-center">
|
|
<h2 className="text-sm text-scale-1200 dark:text-scale-100">{title}</h2>
|
|
{description && (
|
|
<p className="text-xs text-yellow-1200 dark:text-yellow-800">{description}</p>
|
|
)}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default WarningBanner
|