import type React from "react"; import { ExclamationCircleIcon } from "@heroicons/react/24/outline"; export interface InfoWrapperProps { label?: string; description?: string; error?: string; children: React.ReactNode; } export const InfoWrapper = ({ label, description, error, children }: InfoWrapperProps): JSX.Element => { return (
{/* Label */} {label && ( )} {/* */} {children} {error && (
)} {description && (

{description}

)} {error &&

{error}

}
); };