import ListCapsule from '../data/Capsule.json';

export interface CapsuleInfo {
    id: number;
    title: string;
    Text1: string;
    Text2: string;
    Text3: string;
    Text4: string;
    Text5: string;
    Text6: string;
    Text7: string;
    Text8: string;
    Text9: string;
    Text10: string;
    mensage: string;
    nombre1: string;
    id1: number;
    nombre2: string;
    id2: number;
    nombre3: string;
    id3: number;
}

export const getMessages = () => ListCapsule;

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