diff --git a/app/src/frontend/components/error-message.tsx b/app/src/frontend/components/error-message.tsx
new file mode 100644
index 0000000..e6fd2ea
--- /dev/null
+++ b/app/src/frontend/components/error-message.tsx
@@ -0,0 +1,9 @@
+const ErrorMessage = (props: { message: string }) => {
+ return (
+
+ {props.message}
+
+ );
+};
+
+export default ErrorMessage;
diff --git a/app/src/frontend/components/login-form.tsx b/app/src/frontend/components/login-form.tsx
index 96f71ae..6776b8c 100644
--- a/app/src/frontend/components/login-form.tsx
+++ b/app/src/frontend/components/login-form.tsx
@@ -1,17 +1,10 @@
import { FC } from "hono/jsx"
-
-const Error = (props: { message: string }) => {
- return (
-
- {props.message}
-
- );
-};
+import ErrorMessage from "./error-message";
export const LoginForm: FC = (props) => {
return (
<>
- {props.error ? : null}
+ {props.error ? : null}