"use client"; /* * Documentation: * Icon with Background — https://app.subframe.com/f023064a5ca0/library?component=Icon+with+Background_4a18e9fc-cea3-46ca-8c53-2412462342ad */ import React from "react"; import { FeatherFlag } from "@subframe/core"; import { FeatherMail } from "@subframe/core"; import * as SubframeCore from "@subframe/core"; import * as SubframeUtils from "../../utils"; export interface IconFeedbackIconProps extends React.ComponentProps { variant?: | "primary" | "secondary" | "tertiary" | "destructive" | "neutral" | "success" | "warning" | "information"; size?: "medium" | "small" | "large"; icon?: React.ReactNode; className?: string; } const IconFeedbackIcon = React.forwardRef< React.ElementRef, IconFeedbackIconProps >(function IconFeedbackIcon( { variant = "primary", size = "medium", icon = , className, ...otherProps }: IconFeedbackIconProps, ref ) { return icon ? ( {icon} ) : null; }); export interface IconWithBackgroundRootProps extends React.HTMLAttributes { variant?: | "primary" | "secondary" | "tertiary" | "destructive" | "neutral" | "success" | "warning" | "information"; size?: | "extra-small" | "small" | "medium" | "large" | "extra-large" | "2-x-large" | "3-x-large"; round?: boolean; icon?: React.ReactNode; className?: string; } const IconWithBackgroundRoot = React.forwardRef< HTMLDivElement, IconWithBackgroundRootProps >(function IconWithBackgroundRoot( { variant = "primary", size = "medium", round = false, icon = , className, ...otherProps }: IconWithBackgroundRootProps, ref ) { return (
{icon ? ( {icon} ) : null}
); }); export const IconWithBackground = Object.assign(IconWithBackgroundRoot, { IconFeedbackIcon, });