-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
30 lines (22 loc) · 1020 Bytes
/
types.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
import { experiencesData, links } from "@/lib/data";
import { projectsData } from "@/lib/data";
import { experiencesData as experiencesDataBr, links as linksBr } from "@/lib/data-br";
import { projectsData as projectsDataBr } from "@/lib/data-br";
export type Experience = (typeof experiencesData)[number] | (typeof experiencesDataBr)[number];
export type Project = (typeof projectsData)[number] | (typeof projectsDataBr)[number];
export type Section = (typeof links)[number] | (typeof linksBr)[number];
export type SectionName = (typeof links)[number]["name"] | (typeof linksBr)[number]["name"];
export type ActiveSectionContextType = {
activeSection: SectionName;
setActiveSection: React.Dispatch<React.SetStateAction<SectionName>>;
timeOfLastClick: number;
setTimeOfLastClick: React.Dispatch<React.SetStateAction<number>>;
};
export type Theme = "light" | "dark";
export type ThemeContextType = {
theme: Theme;
toggleTheme: () => void;
};
export type LocaleProps = {
params: {locale: string};
};