export type MockFile = {
  id: string;
  name: string;
  size: string;
  uploaded: string;
  expires: string;
  downloads: number;
  status: "Active" | "Expired" | "Flagged";
  owner: string;
  folder?: string;
};

export const mockFiles: MockFile[] = [
  { id: "a1b2c3", name: "design-spec-v4.pdf", size: "2.1 MB", uploaded: "2h ago", expires: "in 7d", downloads: 12, status: "Active", owner: "you", folder: "Projects" },
  { id: "d4e5f6", name: "team-photo.jpg", size: "5.8 MB", uploaded: "1d ago", expires: "in 6d", downloads: 47, status: "Active", owner: "you", folder: "Projects" },
  { id: "g7h8i9", name: "backup-2026-05.tar.gz", size: "1.2 GB", uploaded: "3d ago", expires: "in 27d", downloads: 2, status: "Active", owner: "you", folder: "Backups" },
  { id: "j0k1l2", name: "client-brief.docx", size: "84 KB", uploaded: "5d ago", expires: "expired", downloads: 8, status: "Expired", owner: "anon-104.x.x", folder: "Projects/Client A" },
  { id: "m3n4o5", name: "screen-recording.mp4", size: "312 MB", uploaded: "1w ago", expires: "in 23d", downloads: 134, status: "Flagged", owner: "anon-188.x.x" },
  { id: "p6q7r8", name: "invoice-2026-05.pdf", size: "96 KB", uploaded: "2w ago", expires: "in 16d", downloads: 3, status: "Active", owner: "alice@acme.dev" },
];

export const mockFolders = [
  { name: "Projects", children: [{ name: "Client A" }, { name: "Client B" }, { name: "Internal" }] },
  { name: "Backups", children: [] },
  { name: "Media", children: [{ name: "Photos" }, { name: "Video" }] },
  { name: "Archive", children: [] },
];

export const mockUsers = [
  { email: "alice@acme.dev", role: "Admin", storage: "4.2 GB / 50 GB", files: 184, status: "Active", joined: "2025-11-02" },
  { email: "bob@workshop.io", role: "User", storage: "812 MB / 10 GB", files: 41, status: "Active", joined: "2026-01-14" },
  { email: "carol@startup.app", role: "User", storage: "9.8 GB / 10 GB", files: 612, status: "Active", joined: "2026-03-08" },
  { email: "dan@example.com", role: "User", storage: "12 MB / 10 GB", files: 3, status: "Suspended", joined: "2026-04-22" },
];

export const mockLogs = [
  { ts: "12:42:18", level: "info", msg: "Upload completed bucket=a1b2c3 size=2.1MB" },
  { ts: "12:41:55", level: "warn", msg: "Rate limit hit ip=104.x.x.x" },
  { ts: "12:40:02", level: "info", msg: "User alice@acme.dev signed in" },
  { ts: "12:38:11", level: "error", msg: "S3 putObject retry (attempt 2)" },
  { ts: "12:35:00", level: "info", msg: "Cleanup removed 14 expired buckets" },
  { ts: "12:31:47", level: "info", msg: "Download bucket=g7h8i9 ip=188.x.x.x" },
];

export const uploadTrend = [
  { day: "Mon", uploads: 124, downloads: 412 },
  { day: "Tue", uploads: 88, downloads: 380 },
  { day: "Wed", uploads: 156, downloads: 540 },
  { day: "Thu", uploads: 201, downloads: 612 },
  { day: "Fri", uploads: 178, downloads: 498 },
  { day: "Sat", uploads: 62, downloads: 220 },
  { day: "Sun", uploads: 44, downloads: 188 },
];