+
+
+
+
+ setDraft((current) => ({ ...current, search: event.target.value }))}
+ placeholder={t.logs?.searchPlaceholder || "Search logs..."}
+ className="h-10 rounded-2xl border-slate-200 bg-white pl-10 dark:border-slate-700 dark:bg-slate-900"
+ />
+
+
+
+
+
+
+
+
+
+
+
+ {canSelectUsers || isLoadingUsers ? (
+
+
+ {isLoadingUsers ? (
+
+ {t.logs?.loadingUsers || "Loading users..."}
+
+ ) : (
+
setDraft((current) => ({ ...current, actor }))}
+ options={[
+ { value: "", label: t.logs?.allActors || "All actors" },
+ ...users.map((membership) => ({
+ value: membership.user.id,
+ label:
+ `${membership.user.first_name || ""} ${membership.user.last_name || ""}`.trim() ||
+ membership.user.email ||
+ membership.user.id,
+ searchText: membership.user.mobile || "",
+ })),
+ ]}
+ placeholder={t.logs?.allActors || "All actors"}
+ searchPlaceholder={t.logs?.searchActors || "Search users..."}
+ className="w-full"
+ buttonClassName="h-10 rounded-2xl border border-slate-200 bg-white dark:border-slate-700 dark:bg-slate-900"
+ />
+ )}
+
+ ) : null}
+
+
+
+ setDraft((current) => ({ ...current, from: nextValue }))}
+ placeholder="YYYY/MM/DD"
+ inputClassName="h-10 rounded-2xl border border-slate-200 bg-white px-3 text-sm dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100"
+ />
+
+
+
+
+ setDraft((current) => ({ ...current, to: nextValue }))}
+ placeholder="YYYY/MM/DD"
+ inputClassName="h-10 rounded-2xl border border-slate-200 bg-white px-3 text-sm dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100"
+ />
+
+
+
+
+
+