skolplattformen-backup/libs/api-skolplattformen/lib/fakeData/schoolContacts.ts

53 lines
1.1 KiB
TypeScript

import { SchoolContact, Child } from '@skolplattformen/api'
import { children } from './children'
export const schoolContacts = (child: Child): SchoolContact[] =>
schoolContactData.get(child.id) ?? []
const [child1, child2] = children()
const schoolContactData = new Map<string, SchoolContact[]>([
[
child1.id,
[
{
title: 'Expedition',
name: undefined,
phone: '508 000 00',
email: '',
schoolName: 'Vallaskolan',
className: '',
},
{
title: 'Rektor',
name: 'Alvar Sträng',
phone: '08-50800001',
email: 'alvar.strang@edu.stockholm.se',
schoolName: '',
className: '',
},
],
],
[
child2.id,
[
{
title: 'Expedition',
name: undefined,
phone: '508 000 00',
email: '',
schoolName: 'Vallaskolan',
className: '',
},
{
title: 'Rektor',
name: 'Alvar Sträng',
phone: '08-50800001',
email: 'alvar.strang@edu.stockholm.se',
schoolName: '',
className: '',
},
],
],
])