refactor(types): centralize type definitions in shared types file
Move all interface and type definitions to src/types/index.ts to reduce code duplication and improve maintainability. This includes types for components, blog posts, personal info, and localization.
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
import { motion, useAnimation } from "framer-motion";
|
||||
import { useState, useEffect } from "react";
|
||||
import { useTranslations } from "@/i18n/utils";
|
||||
|
||||
/**
|
||||
* Skill item interface for the marquee component
|
||||
*/
|
||||
interface SkillItem {
|
||||
name: string;
|
||||
icon: string; // skillicons icon name
|
||||
}
|
||||
import { type SkillItem } from "@/types";
|
||||
|
||||
/**
|
||||
* All skills data with corresponding skillicons names
|
||||
|
||||
Reference in New Issue
Block a user