misc_pterodactyl-panel/resources/scripts/components/NetworkErrorMessage.tsx

14 lines
354 B
TypeScript
Raw Normal View History

2019-06-16 23:57:57 +00:00
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>
);