"use client"; /* * Documentation: * Button — https://app.subframe.com/f023064a5ca0/library?component=Button_3b777358-b86b-40af-9327-891efc6826fe * Empty State — https://app.subframe.com/f023064a5ca0/library?component=Empty+State_9fcf03a9-ada9-4a3d-80bc-87ff6ce78023 */ import React from "react"; import * as SubframeUtils from "../../utils"; import { Button } from "../Button"; export interface EmptyStateRootProps extends Omit, "title"> { variant?: "default" | "no-results" | "error"; outlined?: boolean; fillContainer?: boolean; title?: React.ReactNode; body?: React.ReactNode; className?: string; } const EmptyStateRoot = React.forwardRef( function EmptyStateRoot( { variant = "default", outlined = false, fillContainer = false, title, body, className, ...otherProps }: EmptyStateRootProps, ref ) { return (
{title ? ( {title} ) : null} {body ? ( {body} ) : null}
); } ); export const EmptyState = EmptyStateRoot;