misc_pterodactyl-panel/resources/scripts/components/screens/ServerError.tsx
2020-07-03 14:19:05 -07:00

21 lines
529 B
TypeScript

import React from 'react';
import styled from 'styled-components/macro';
import ScreenBlock from '@/components/screens/ScreenBlock';
interface Props {
title?: string;
message: string;
onRetry?: () => void;
onBack?: () => void;
}
export default ({ title, message, onBack, onRetry }: Props) => (
// @ts-ignore
<ScreenBlock
title={title || 'Something went wrong'}
image={'/assets/svgs/server_error.svg'}
message={message}
onBack={onBack}
onRetry={onRetry}
/>
);