diff --git a/src/utils/get-date.ts b/src/utils/get-date.ts
new file mode 100644
index 0000000..fd72463
--- /dev/null
+++ b/src/utils/get-date.ts
@@ -0,0 +1,7 @@
+import { format, subDays } from 'date-fns'
+
+export const getDate = (sub: number = 0) => {
+ const dateXDaysAgo = subDays(new Date(), sub)
+
+ return format(dateXDaysAgo, 'dd/MM/yyyy')
+}
diff --git a/src/utils/index.ts b/src/utils/index.ts
index 67abe4f..2454274 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -1,9 +1,3 @@
-import { format, subDays } from 'date-fns'
-
-export const getDate = (sub: number = 0) => {
- const dateXDaysAgo = subDays(new Date(), sub)
-
- return format(dateXDaysAgo, 'dd/MM/yyyy')
-}
-
export * from './fetcher'
+export * from './get-date'
+export * from './prevent-default'
diff --git a/src/utils/prevent-default.ts b/src/utils/prevent-default.ts
new file mode 100644
index 0000000..8d85073
--- /dev/null
+++ b/src/utils/prevent-default.ts
@@ -0,0 +1,7 @@
+import React from 'react'
+
+export const preventDefaultAction = (
+ event: T
+) => {
+ event.preventDefault()
+}