@imksh/create 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imksh/create",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "A production-ready create for scaffolding modern applications.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -4,8 +4,6 @@ import { Txt } from "./Typography";
4
4
 
5
5
  import { useColorScheme } from "nativewind";
6
6
  import { Colors } from "../../constants/Colors";
7
- import { useTranslation } from "react-i18next";
8
-
9
7
  import { Portal } from "react-native-paper";
10
8
 
11
9
  export interface ConfirmationToastProps {
@@ -25,9 +23,8 @@ export default function ConfirmationToast({
25
23
  cancleText,
26
24
  confirmText,
27
25
  }: ConfirmationToastProps) {
28
- const { t } = useTranslation();
29
- const cText = cancleText ?? t("common.cancel");
30
- const confText = confirmText ?? t("common.confirm");
26
+ const cText = cancleText ?? "Cancel";
27
+ const confText = confirmText ?? "Confirm";
31
28
  const { colorScheme } = useColorScheme();
32
29
  const colors = Colors[colorScheme ?? "light"];
33
30
 
@@ -0,0 +1,17 @@
1
+ export interface Pagination {
2
+ page?: number;
3
+ limit?: number;
4
+ total?: number;
5
+ totalPages?: number;
6
+ nextCursor?: string;
7
+ unreadCount?: number;
8
+ }
9
+
10
+ export interface ApiResponse<T = any> {
11
+ success: boolean;
12
+ message: string;
13
+ data?: T;
14
+ pagination?: Pagination;
15
+ status?: number;
16
+ token?: string;
17
+ }