-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.tsx
More file actions
72 lines (70 loc) · 1.85 KB
/
constants.tsx
File metadata and controls
72 lines (70 loc) · 1.85 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { Person, Gender, TreeData } from './types';
import { User, Users, Baby, Heart, Sparkles, Network, FileText, Plus, UserPlus } from 'lucide-react';
export const INITIAL_DATA: TreeData = {
rootId: '1',
people: {
'1': {
id: '1',
firstName: 'Arthur',
lastName: 'Pendragon',
gender: Gender.Male,
birthDate: '1920-05-15',
birthPlace: 'London, UK',
bio: 'The patriarch of the family. Served in the navy and loved woodworking.',
spouseIds: ['2'],
childrenIds: ['3', '4'],
fatherId: null,
motherId: null,
},
'2': {
id: '2',
firstName: 'Guinevere',
lastName: 'Pendragon',
gender: Gender.Female,
birthDate: '1922-08-20',
spouseIds: ['1'],
childrenIds: ['3', '4'],
fatherId: null,
motherId: null,
},
'3': {
id: '3',
firstName: 'Mordred',
lastName: 'Pendragon',
gender: Gender.Male,
birthDate: '1950-02-10',
spouseIds: [],
childrenIds: ['5'],
fatherId: '1',
motherId: '2',
},
'4': {
id: '4',
firstName: 'Morgana',
lastName: 'Le Fay',
gender: Gender.Female,
birthDate: '1955-11-30',
spouseIds: [],
childrenIds: [],
fatherId: '1',
motherId: '2',
},
'5': {
id: '5',
firstName: 'Galahad',
lastName: 'Pendragon',
gender: Gender.Male,
birthDate: '1980-01-01',
spouseIds: [],
childrenIds: [],
fatherId: '3',
motherId: null, // Unknown mother
}
}
};
export const NAV_ITEMS = [
{ id: 'tree', label: 'Visualize', icon: <Network size={20} /> },
{ id: 'editor', label: 'Manage Records', icon: <Users size={20} /> },
{ id: 'smart-add', label: 'AI Import', icon: <Sparkles size={20} /> },
{ id: 'invites', label: 'Invitations', icon: <UserPlus size={20} />, adminOnly: true },
];