mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 22:03:44 +02:00
Migrate the existing login form to use React
This commit is contained in:
14
resources/scripts/components/MessageBox.tsx
Normal file
14
resources/scripts/components/MessageBox.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
|
||||
interface Props {
|
||||
title?: string;
|
||||
message: string;
|
||||
type?: 'success' | 'info' | 'warning' | 'error';
|
||||
}
|
||||
|
||||
export default ({ title, message, type }: Props) => (
|
||||
<div className={`lg:inline-flex alert ${type}`} role={'alert'}>
|
||||
{title && <span className={'title'}>{title}</span>}
|
||||
<span className={'message'}>{message}</span>
|
||||
</div>
|
||||
);
|
||||
Reference in New Issue
Block a user