Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m55s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 2m14s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 7s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import type { ComponentProps } from 'react'
|
|
import { Alert, AlertAction, AlertDescription, AlertTitle } from '@cfdm/ui/components/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>
|
|
|
|
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} />
|
|
}
|