neww / types.ts
admin08077's picture
Upload 16 files
6899f04 verified
raw
history blame contribute delete
885 Bytes
import type React from 'react';
import { CHROME_VIEW_IDS } from './constants.ts';
export type ChromeViewType = typeof CHROME_VIEW_IDS[number];
export type FeatureId = string;
export interface Feature {
id: FeatureId;
name: string;
description: string;
icon: React.ReactNode;
category: string;
component: React.FC<any>;
aiConfig?: {
model: string;
systemInstruction?: string;
};
}
export type ViewType = FeatureId | ChromeViewType;
export interface GeneratedFile {
filePath: string;
content: string;
description: string;
}
export interface SidebarItem {
id: string;
label: string;
icon: React.ReactNode;
view: ViewType;
props?: any;
action?: () => void;
}
export interface StructuredPrSummary {
title: string;
summary: string;
changes: string[];
}
export interface User {
name: string;
email: string;
picture: string;
}