mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
Sign in mechanism
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
import { Dispatch, SetStateAction } from "react";
|
||||
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
import { ResponseMessage } from "@/types";
|
||||
|
||||
const InfoMessage = ({
|
||||
responseMessage,
|
||||
className,
|
||||
}: {
|
||||
responseMessage: ResponseMessage;
|
||||
className?: string;
|
||||
}) => (
|
||||
<p
|
||||
className={`${
|
||||
responseMessage.isSuccessful ? "text-green-600" : "text-red-600"
|
||||
} italic`}
|
||||
className={twMerge(
|
||||
"italic",
|
||||
responseMessage.isSuccessful ? "text-green-600" : "text-red-600",
|
||||
className,
|
||||
)}
|
||||
data-test="info-message"
|
||||
>
|
||||
{responseMessage.message}
|
||||
|
||||
Reference in New Issue
Block a user