We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 600f232 commit a2eb981Copy full SHA for a2eb981
2 files changed
app/page.tsx
@@ -10,12 +10,7 @@ import { BrandLogo } from "@/components/brand-logo";
10
import { AppHeader } from "@/components/app-header";
11
import { AppFooter } from "@/components/app-footer";
12
import { useTranslation } from "@/components/language-provider";
13
-
14
-type ApiResponse = {
15
- success: boolean;
16
- users?: UserResult[];
17
- error?: string;
18
-};
+import { ApiResponse } from "@/types/api-response";
19
20
function HomePageInner() {
21
const { t } = useTranslation();
types/api-response.ts
@@ -0,0 +1,7 @@
1
+import { UserResult } from "./user-result";
2
+
3
+export type ApiResponse = {
4
+ success: boolean;
5
+ users?: UserResult[];
6
+ error?: string;
7
+};
0 commit comments