From 7b6d1a278521bf172ff8c5f197dc66cf0656226b Mon Sep 17 00:00:00 2001 From: Ravinou Date: Wed, 1 Jan 2025 14:03:49 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=9A=A1=20info=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Components/UI/Info/Info.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Components/UI/Info/Info.tsx b/Components/UI/Info/Info.tsx index 5597ef9..0f265f4 100644 --- a/Components/UI/Info/Info.tsx +++ b/Components/UI/Info/Info.tsx @@ -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 (
{props.message}