Skip to content

Commit

Permalink
feat: types
Browse files Browse the repository at this point in the history
  • Loading branch information
LeleDallas committed Aug 2, 2023
1 parent 2918e71 commit f85a48e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { IconNames } from "./components/iconfont"

export type ActiveNav = "About" | "Resume" | "Portfolio" | "Blog" | "Contact"

export interface ScreenProps {
active: ActiveNav
}

export interface NavbarProps {
active: ActiveNav
setActive: (arg: ActiveNav) => void
}

export interface DataModel {
title: string
description: string
image: string
purpose?: string
}

export interface ModalProps {
visible: boolean,
setVisible: (visible: boolean) => void,
data: DataModel
}

export interface SocialObject {
url: string
icon: IconNames
}

0 comments on commit f85a48e

Please sign in to comment.