Files
cloudflare-domain-manager/apps/web/src/components/app-alert.tsx
T
DenozordecandCursor 57ee231417 refactor(ui): заменить Badge и Alert на ReUI semantic
Перевести AppBadge/AppAlert и потребители на @/components/reui; EmptyState — IconStack в духе empty-state-12.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:48:42 +07:00

34 lines
1.1 KiB
TypeScript

import type { ComponentProps } from 'react'
import {
Alert,
AlertAction,
AlertDescription,
AlertTitle,
} from '@/components/reui/alert'
import { cn } from '@cfdm/ui/lib/utils'
export type AppAlertProps = ComponentProps<typeof Alert>
export type AppAlertTitleProps = ComponentProps<typeof AlertTitle>
export type AppAlertDescriptionProps = ComponentProps<typeof AlertDescription>
export type AppAlertActionProps = ComponentProps<typeof AlertAction>
/** Thin alias over ReUI Alert — prefer importing from `@/components/reui/alert` in new code. */
export function AppAlert({ className, ...props }: AppAlertProps) {
return <Alert className={cn(className)} {...props} />
}
export function AppAlertTitle({ className, ...props }: AppAlertTitleProps) {
return <AlertTitle className={cn(className)} {...props} />
}
export function AppAlertDescription({
className,
...props
}: AppAlertDescriptionProps) {
return <AlertDescription className={cn(className)} {...props} />
}
export function AppAlertAction({ className, ...props }: AppAlertActionProps) {
return <AlertAction className={cn(className)} {...props} />
}