mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-14 14:25:46 +01:00
refactor: ⚡ info component
This commit is contained in:
parent
f228117720
commit
7b6d1a2785
1 changed files with 8 additions and 1 deletions
|
|
@ -1,7 +1,14 @@
|
|||
//Lib
|
||||
import { ReactNode } from 'react';
|
||||
import classes from './Info.module.css';
|
||||
|
||||
export default function Info(props) {
|
||||
type InfoProps = {
|
||||
message: string;
|
||||
color: string;
|
||||
children?: ReactNode;
|
||||
};
|
||||
|
||||
export default function Info(props: InfoProps) {
|
||||
return (
|
||||
<div className={classes.infoMessage} style={{ backgroundColor: props.color }}>
|
||||
{props.message}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue