import React, { forwardRef, RefAttributes, type JSX } from "react"; import { useRenderProps } from "@hooks/useRenderProps"; import { ElementWrapper, RenderBaseProps, SuggestStrings, } from "../../../types"; import { BannerContent, StyledBanner } from "../Banners.styles"; import { IconButton, IconButtonProps } from "../../Buttons/IconButton"; import { Button, ButtonProps } from "../../Buttons/Button"; export type BannerVariants = SuggestStrings< "info" | "error" | "success" | "warning" >; export interface BannerProps extends RenderBaseProps, ElementWrapper { readonly variant?: BannerVariants; } function Banner(props: BannerProps, ref: React.Ref) { const { variant = "info", children, className, style, ...rest } = props; const renderProps = useRenderProps({ componentClassName: "aje-banner", variant, children, className, style, }); return ; } const BannerIconButton = forwardRef( (props, ref) => { const { variant = "banner", ...rest } = props; return ; } ); const BannerButton = forwardRef( (props, ref) => { const { variant = "inverted", ...rest } = props; return