123456789101112131415161718192021 |
- import ListCapsule from '../data/Capsule.json';
-
- export interface CapsuleInfo {
- id: number;
- title: string;
- content: string;
- photo: string;
- bioName1: string;
- bioId1: number;
- bioPic1: string;
- bioName2: string;
- bioId2: number;
- bioPic2: string;
- bioName3: string;
- bioId3: number;
- bioPic3: string;
- }
-
- export const getCapsules = () => ListCapsule;
-
- export const getCapsule = (id: number) => ListCapsule.find(c => c.id === id);
|