misc_pterodactyl-panel/resources/scripts/components/NetworkErrorMessage.tsx
2019-06-16 16:57:57 -07:00

13 lines
354 B
TypeScript

import * as React from 'react';
import MessageBox from '@/components/MessageBox';
export default ({ message }: { message: string | undefined | null }) => (
!message ?
null
:
<div className={'mb-4'}>
<MessageBox type={'error'} title={'Error'}>
{message}
</MessageBox>
</div>
);