-
- table.getColumn('title')?.setFilterValue(event.target.value)
- }
- className="h-10 w-[150px] lg:w-[250px]"
- />
-
- {table.getColumn('languages') && (
-
- )}
+ {(enableSearch || enableFilter || enableDelete) && (
+
+
+ {enableSearch && (
+
+ table.getColumn('title')?.setFilterValue(event.target.value)
+ }
+ className="h-10 w-[150px] lg:w-[250px]"
+ />
+ )}
+ {enableFilter && (
+
+ {table.getColumn('languages') && (
+
+ )}
+ {table.getColumn('tag') && (
+
+ )}
+
+ )}
+
- {table.getColumn('tag') && (
-
- )}
-
- {selectedRowCount !== 0 ? (
-
-
+ {enableDelete ? (
+ selectedRowCount !== 0 ? (
+
+
+
+
+
+
+ Delete
+
+ Are you sure you want to permanently delete{' '}
+ {selectedRowCount} {page}(s)?
+
+
+
+ Cancel
+
+
+
+
+
+
+ ) : (
-
-
-
- Delete
-
- Are you sure you want to permanently delete {selectedRowCount}{' '}
- {page}(s)?
-
-
-
- Cancel
-
-
-
-
-
-
- ) : (
-
- )}
-