/** * Copyright 2022 Design Barn Inc. */ import { Player } from '@lottiefiles/react-lottie-player'; import { Appearance, Size } from '@lottiefiles/react-ui-kit'; import React, { ReactNode } from 'react'; import { Button } from '../../../../../_components'; import errorJson from '../../../../../assets/json/error-cone.json'; interface Action { name: string; onAction: () => void; } interface ErrorViewProps { action?: Action; description?: ReactNode; title?: string; } export const ErrorView: React.FC = ({ action, description, title = 'Error !' }: ErrorViewProps) => { return (

{title}

{description && (

{description}

)} {action && (
)}
); }; export const GlobalErrorView: React.FC = () => { return ( ); };