-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.ts
53 lines (47 loc) · 871 Bytes
/
interfaces.ts
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
import { Dispatch, SetStateAction } from "react";
export interface IToggleProps {
isMenuOpen: boolean;
setisMenuOpen: Dispatch<SetStateAction<boolean>>;
}
export interface ITech {
name: string;
icon: string;
url: string;
}
export interface ISocial {
name: string;
icon: string;
url: string;
enUrl?: string;
}
export interface IRepo {
name: string;
course?: {
name: string;
url: string;
};
date: string;
url: string | null;
source: string;
imgSource: string;
credentials?: {
user: string;
pass: string;
};
description?: string;
enDescription?: string;
tags: Array<string>;
}
export interface IFrontMatter {
image: any;
readingTime: any;
title: string;
summary: string;
slug: string;
createdAt: string;
tags: Array<string>;
}
export interface IPost {
frontMatter: IFrontMatter;
children: React.ReactNode;
}