"use client"; /* * Documentation: * Button — https://app.subframe.com/f023064a5ca0/library?component=Button_3b777358-b86b-40af-9327-891efc6826fe * Card Image — https://app.subframe.com/f023064a5ca0/library?component=Card+Image_1f735087-2381-42e1-8ceb-491a8bc63948 */ import React from "react"; import * as SubframeUtils from "../../utils"; import { Button } from "../Button"; export interface CardImageRootProps extends Omit, "title"> { outlined?: boolean; layout?: "horizontal" | "vertical"; hideImage?: boolean; title?: React.ReactNode; body?: React.ReactNode; className?: string; } const CardImageRoot = React.forwardRef( function CardImageRoot( { outlined = false, layout = "horizontal", hideImage = false, title, body, className, ...otherProps }: CardImageRootProps, ref ) { return (
{title ? ( {title} ) : null}
{body ? ( {body} ) : null}
); } ); export const CardImage = CardImageRoot;