import { HyperlinkModel } from "@paperbits/common/permalinks";

/**
 * Product list widget configuration.
 */
export class ProductListModel {
    /**
     * Product list layout, e.g. "list", "dropdown".
     */
    public layout?: string;

    /**
     * Indicated that a product can be selected.
     */
    public allowSelection: boolean;

    /**
     * Link to a page that contains operation details.
     */
    public detailsPageHyperlink: HyperlinkModel;

    constructor(layout: string = "list") {
        this.layout = layout;
    }
}
