mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-14 14:25:46 +01:00
17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
import { ReactNode } from 'react';
|
|
import classes from './Info.module.css';
|
|
|
|
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}
|
|
{props.children}
|
|
</div>
|
|
);
|
|
}
|