mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 03:17:56 -05:00
14 lines
354 B
TypeScript
14 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>
|
||
|
|
);
|