import { DataComponentRecord, DataSource } from '/@/api/dataBoard/model';

export interface PictureComponentValue {
  value?: string;
  updateTime?: string;
}

export const transformPictureConfig = (
  _config: Recordable,
  _record: DataComponentRecord,
  dataSourceRecord: DataSource
) => {
  const componentInfo = dataSourceRecord.componentInfo;
  return {
    value: {
      value: componentInfo.value,
      updateTime: componentInfo.updateTime,
    } as PictureComponentValue,
  };
};
