mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
## Problem Now that we migrated old components to their new shadcn alternatives, we don't need the `_Shadcn_` suffix anymore. ## Solution Remove it <img width="659" height="609" alt="image" src="https://github.com/user-attachments/assets/2d7271a9-066a-4dcc-92fe-729b106d2c2f" />
18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
import { Alert, AlertDescription, AlertTitle } from 'ui'
|
|
|
|
interface CalloutProps {
|
|
icon?: string
|
|
title?: string
|
|
children?: React.ReactNode
|
|
}
|
|
|
|
export function Callout({ title, children, icon, ...props }: CalloutProps) {
|
|
return (
|
|
<Alert {...props}>
|
|
{icon && <span className="mr-4 text-2xl">{icon}</span>}
|
|
{title && <AlertTitle>{title}</AlertTitle>}
|
|
<AlertDescription>{children}</AlertDescription>
|
|
</Alert>
|
|
)
|
|
}
|