File tree Expand file tree Collapse file tree 4 files changed +39
-0
lines changed Expand file tree Collapse file tree 4 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 4
4
"subtitle" : " أدخل رقم القضية لعرض تفاصيلها." ,
5
5
"button" : " بحث"
6
6
},
7
+ "loading" : {
8
+ "title" : " تحميل"
9
+ },
7
10
"error" : {
8
11
"title" : " حدث خطأ ما!" ,
9
12
"subtitle" : " القضية التي تبحث عنها غير موجودة بعد." ,
Original file line number Diff line number Diff line change 4
4
"subtitle" : " Enter the case number to view its details." ,
5
5
"button" : " Search"
6
6
},
7
+ "loading" : {
8
+ "title" : " LOADING"
9
+ },
7
10
"error" : {
8
11
"title" : " Something went wrong!" ,
9
12
"subtitle" : " The case you are looking for doesn't exist yet." ,
Original file line number Diff line number Diff line change 4
4
"subtitle" : " Introduzca el número del caso para ver los detalles." ,
5
5
"button" : " Buscar"
6
6
},
7
+ "loading" : {
8
+ "title" : " CARGANDO"
9
+ },
7
10
"error" : {
8
11
"title" : " Algo salió mal" ,
9
12
"subtitle" : " El caso que estás buscando no existe aún." ,
Original file line number Diff line number Diff line change
1
+ "use client" ;
2
+
3
+ import React from "react" ;
4
+
5
+ import clsx from "clsx" ;
6
+ import { useTranslations } from "next-intl" ;
7
+
8
+ const Loading : React . FC = ( ) => {
9
+ const t = useTranslations ( "loading" ) ;
10
+
11
+ return (
12
+ < div className = "m-auto" >
13
+ < div
14
+ className = { clsx (
15
+ "w-16 h-16 border-4 border-r-white-background border-primary-blue" ,
16
+ "rounded-full animate-spin mx-auto" ,
17
+ ) }
18
+ />
19
+ < span
20
+ className = {
21
+ "mt-2 font-semibold text-primary-blue text-center animate-pulse block"
22
+ }
23
+ >
24
+ { t ( "title" ) }
25
+ </ span >
26
+ </ div >
27
+ ) ;
28
+ } ;
29
+
30
+ export default Loading ;
You can’t perform that action at this time.
0 commit comments