import { ComponentValue, IComponentValue } from './component-value';

export type ComponentDetails = Record<string, Record<'componentValues', IComponentValue>>;

export interface IComponentLogEntry {
    name: string;
    componentValues: IComponentValue[];
}

export class ComponentLogEntry implements IComponentLogEntry {
    readonly name: string;
    readonly componentValues: ComponentValue[];

    constructor(entry: IComponentLogEntry) {
        this.name = entry.name;
        this.componentValues = entry.componentValues;
    }
}
