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,19 +1,6 @@
|
||||
import type { Lang } from '../i18n/utils';
|
||||
import { type AuthorCardProps } from '@/types';
|
||||
import { personalInfo } from '@/lib/data';
|
||||
|
||||
interface AuthorCardProps {
|
||||
lang: Lang;
|
||||
author?: {
|
||||
name: string;
|
||||
bio?: string;
|
||||
avatar?: string;
|
||||
website?: string;
|
||||
twitter?: string;
|
||||
github?: string;
|
||||
linkedin?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export default function AuthorCard({ lang, author }: AuthorCardProps) {
|
||||
// Default author info based on personalInfo
|
||||
const defaultAuthor = {
|
||||
|
||||
Reference in New Issue
Block a user