"use client"; /* * Documentation: * Button — https://app.subframe.com/f023064a5ca0/library?component=Button_3b777358-b86b-40af-9327-891efc6826fe * Card Icon — https://app.subframe.com/f023064a5ca0/library?component=Card+Icon_41867f0d-7a6a-4e51-9b08-6cce5a3070b1 */ import React from "react"; import { FeatherInfo } from "@subframe/core"; import * as SubframeUtils from "../../utils"; import { Button } from "../Button"; export interface CardIconRootProps extends Omit, "title"> { outlined?: boolean; layout?: "horizontal" | "vertical"; hideIcon?: boolean; title?: React.ReactNode; body?: React.ReactNode; className?: string; } const CardIconRoot = React.forwardRef( function CardIconRoot( { outlined = false, layout = "horizontal", hideIcon = false, title, body, className, ...otherProps }: CardIconRootProps, ref ) { return (
{title ? ( {title} ) : null}
{body ? ( {body} ) : null}
); } ); export const CardIcon = CardIconRoot;