import React from 'react';
import { LoadingErrorState } from '../ErrorState';
import { Page } from '@wix/design-system';
import { PageErrorStateIllustration } from './PageErrorStateIllustration';
import { Refresh } from '@wix/wix-ui-icons-common';
export function PageErrorState({ onRetry, title, subtitle, retryText, image, dataHook, }) {
    return (React.createElement(Page, { dataHook: dataHook },
        React.createElement(Page.Header, null),
        React.createElement(Page.Content, null,
            React.createElement(LoadingErrorState, { title: title, subtitle: subtitle, action: retryText && onRetry
                    ? {
                        text: retryText,
                        onClick: onRetry,
                        prefixIcon: React.createElement(Refresh, null),
                    }
                    : undefined, image: image ?? React.createElement(PageErrorStateIllustration, null), dataHook: "page-error-state" }))));
}
//# sourceMappingURL=PageErrorState.js.map