/** * Copyright 2020 Design Barn Inc. */ import { Button, Size, Appearance } from '@lottiefiles/react-ui-kit'; import * as React from 'react'; import { LoadingLottie } from './loading-lottie'; interface Action { name: string; onAction: () => void; } interface ILoadingProps { action?: Action; content?: React.ReactNode; } export const Loading: React.FC = ({ action, content }) => { return (
{content && (

{content}

)} {action && (
)}
); };