refactor: info component

This commit is contained in:
Ravinou 2025-01-01 14:03:49 +01:00
commit 7b6d1a2785
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7

View file

@ -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}