@using FastReport.Web.Blazor.Components.Internal.ExportSettings

@switch (WebReport.ExportType)
{
    case Exports.Pdf:
        <PdfExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.HTML:
        <HtmlExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.Word2007:
        <DocxExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.Excel2007:
        <XlsxExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.PowerPoint2007:
        <PowerPointExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    @*case Exports.Image:
        <ImageExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;*@

    case Exports.Rtf:
        <RtfExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.XmlExcel:
        <XmlExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.Svg:
        <SvgExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.Ods:
        <OpenCalcExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.Odt:
        <OpenWriterExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;

    case Exports.Prepared:
        <FpxExportSettings WebReport="WebReport" ExportParameters="ExportParameters" />
        break;
}

@code {

    [Parameter]
    public WebReport WebReport { get; set; }

    [Parameter]
    public Dictionary<string, string> ExportParameters { get; set; }

}
