import ListBio from '../data/Biograph.json';

export interface BioInfo {
    id: number;
    title: string;
    tags: string;
    birth: string,
    place: string,
    death: string,
    photo: string;
    content: string;
    Text1: string;
    Text2: string;
    Text3: string;
    Text4: string;
    Text5: string;
    Text6: string;
    Text7: string;
    Text8: string;
    Text9: string;
    Text10: string;
    url: string;
}

export const getMessages = () => ListBio;

export const getMessage = (id: number) => ListBio.find(m => m.id === id);