import {ComponentExporterImporter, PreloadedDynamicValues} from "../ComponentExporterImporter";
import {TestableData} from "../../store";
import {ExportImportTarget} from "../Exporters";
import {CouponsInCartOptions} from "../../cards/conditions/CouponsInCart";

export class CouponsInCartExporterImporter implements ComponentExporterImporter<TestableData<CouponsInCartOptions>, TestableData<CouponsInCartOptions>> {
    type= 'CouponsInCart'

    /**
     * Remove ids when this is a preset
     */
    exportData(data: TestableData<CouponsInCartOptions>, target: ExportImportTarget): TestableData<CouponsInCartOptions> {
        return data
    }

    tagDynamicValues({options: {expectedValues}}: TestableData<CouponsInCartOptions>, target: ExportImportTarget): PreloadedDynamicValues {
        return {
            category: 'coupons',
            values: expectedValues
        };
    }
}