diff --git a/src/lib/pages/shared/UserProfileCommons.tsx b/src/lib/pages/shared/UserProfileCommons.tsx
index b29fcf15..2eed1c0b 100644
--- a/src/lib/pages/shared/UserProfileCommons.tsx
+++ b/src/lib/pages/shared/UserProfileCommons.tsx
@@ -2,7 +2,6 @@ import React, { useEffect, Fragment } from "react";
 import type { KcProps } from "../../KcProps";
 import type { Attribute } from "../../getKcContext/KcContextBase";
 import { clsx } from "../../tools/clsx";
-import type { ReactComponent } from "../../tools/ReactComponent";
 import { useCallbackFactory } from "../../tools/useCallbackFactory";
 import { useFormValidationSlice } from "../../useFormValidationSlice";
 import type { I18nBase } from "../../i18n";
@@ -12,7 +11,7 @@ export type UserProfileFormFieldsProps = {
     kcContext: Param0<typeof useFormValidationSlice>["kcContext"];
     i18n: I18nBase;
 } & KcProps &
-    Partial<Record<"BeforeField" | "AfterField", ReactComponent<{ attribute: Attribute }>>> & {
+    Partial<Record<"BeforeField" | "AfterField", (props: { attribute: Attribute }) => JSX.Element | null>> & {
         onIsFormSubmittableValueChange: (isFormSubmittable: boolean) => void;
     };
 
diff --git a/src/lib/tools/ReactComponent.ts b/src/lib/tools/ReactComponent.ts
deleted file mode 100644
index fcef0123..00000000
--- a/src/lib/tools/ReactComponent.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/* eslint-disable @typescript-eslint/ban-types */
-import type { FC, ComponentClass } from "react";
-
-export type ReactComponent<Props extends Record<string, unknown> = {}> = ((props: Props) => ReturnType<FC>) | ComponentClass<Props>;