import { User } from 'src/types/user';

import { Icon } from './icons';

export enum WidgetTypes {
  URL = 'URL',
  KNOWLEDGE_LIBRARY = 'KNOWLEDGE_LIBRARY',
}

export type Widget = {
  id: number;
  type: string;
  title: string;
  body: string;
  updatedAt: Date;
  createdAt: Date;
  active: boolean;
  creator: User;
  position: number;
  segmentation: any | null;
  userSegmentation: any | null;
  icon: Icon;
};
