"use client"; /* * Documentation: * Banner Alert — https://app.subframe.com/f023064a5ca0/library?component=Banner+Alert_a3e8dcff-3c57-42da-880f-432bb8ce4100 * Link Button — https://app.subframe.com/f023064a5ca0/library?component=Link+Button_a4ee726a-774c-4091-8c49-55b659356024 */ import React from "react"; import { FeatherAlertCircle } from "@subframe/core"; import { FeatherAlertTriangle } from "@subframe/core"; import { FeatherCheckCircle } from "@subframe/core"; import { FeatherInfo } from "@subframe/core"; import { FeatherX } from "@subframe/core"; import * as SubframeUtils from "../../utils"; import { LinkButton } from "../LinkButton"; export interface BannerAlertRootProps extends React.HTMLAttributes { dismissing?: boolean; type?: "information" | "success" | "warning" | "error"; fillContainer?: boolean; hideAction?: boolean; dismissible?: boolean; children?: React.ReactNode; actionLabel?: React.ReactNode; className?: string; } const BannerAlertRoot = React.forwardRef( function BannerAlertRoot( { dismissing = false, type = "information", fillContainer = false, hideAction = false, dismissible = false, children, actionLabel, className, ...otherProps }: BannerAlertRootProps, ref ) { return (
{children ? ( {children} ) : null} Aktion
); } ); export const BannerAlert = BannerAlertRoot;