refactor: move const, types to shared

This commit is contained in:
2025-07-04 13:37:52 +03:00
parent 62e0687358
commit a400d34a40
19 changed files with 24 additions and 23 deletions

View File

@@ -0,0 +1,7 @@
import { StaticImageData } from 'next/image';
export type TExpert = {
position: string;
name: string;
photo: string | StaticImageData;
};

5
src/shared/types/menu.ts Normal file
View File

@@ -0,0 +1,5 @@
export type TMenu = {
name: string;
link?: string;
children?: TMenu;
}[];

View File

@@ -0,0 +1,5 @@
export type TRelatedArticles = {
title: string;
description: string;
link: string;
};

View File

@@ -0,0 +1,10 @@
export type TSidebar = {
estimate: string;
relatedTitle?: string;
related?: {
title: string;
link: string;
}[];
warrantiesTitle?: string;
warranties?: string[];
};