-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
32 lines (28 loc) · 779 Bytes
/
types.ts
File metadata and controls
32 lines (28 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
export type MediaType = 'IMAGE' | 'VIDEO' | 'DOCUMENT';
export interface EvidenceItem {
id: string;
type: MediaType;
lat: number;
lng: number;
locationSource?: 'auto' | 'manual';
country?: string; // Added for filtering
city?: string; // Added for filtering
title: string;
description: string;
tags: string[];
thumbnailUrl: string;
fullUrl: string;
ipfsHash: string;
xrplTxHash: string;
walletAddress: string;
timestamp: number;
verified: boolean;
}
export type ZoneType = 'COUNTRY' | 'RADIUS' | 'NONE';
export interface ZoneConfig {
mode: ZoneType;
selectedCountry?: string | null; // Name of the selected country
center?: { lat: number; lng: number } | null;
radiusKm?: number;
}
export type MapMode = 'VIEW' | 'PICK_LOCATION';