"use client"; /* * Documentation: * Button — https://app.subframe.com/f023064a5ca0/library?component=Button_3b777358-b86b-40af-9327-891efc6826fe * Error State — https://app.subframe.com/f023064a5ca0/library?component=Error+State_07f75db5-d9ee-406e-8c83-cb9e3bf687ee */ import React from "react"; import * as SubframeUtils from "../../utils"; import { Button } from "../Button"; export interface ErrorStateRootProps extends Omit, "title"> { variant?: "inline" | "full-width"; hideCancel?: boolean; title?: React.ReactNode; description?: React.ReactNode; retryLabel?: React.ReactNode; cancelLabel?: React.ReactNode; className?: string; } const ErrorStateRoot = React.forwardRef( function ErrorStateRoot( { variant = "inline", hideCancel = false, title, description, retryLabel, cancelLabel, className, ...otherProps }: ErrorStateRootProps, ref ) { return (
{title ? ( {title} ) : null}
{description ? ( {description} ) : null}
); } ); export const ErrorState = ErrorStateRoot;