Added files and folders into /src directory.

This commit is contained in:
Lucid Kobold
2022-04-22 20:58:15 -05:00
parent 17d90ce958
commit 436f79b933
24 changed files with 11 additions and 11 deletions

View File

@@ -0,0 +1,35 @@
import React, { FC } from "react";
interface FormValidateEmojiProps {
type: string;
}
const FormValidateEmoji: FC<FormValidateEmojiProps> = ({
type
}: FormValidateEmojiProps) => {
interface Validations {
[key: string]: JSX.Element;
}
const validations: Validations = {
Required: (
<span role="img" aria-label="Explication Mark">
</span>
),
Error: (
<span role="img" aria-label="X">
</span>
),
Valid: (
<span role="img" aria-label="Check">
</span>
)
};
return validations[`${type}`];
};
export default FormValidateEmoji;