import FactoryRenderer from "../../../../Renderer";

export type ExportViewProps = {
  disabled: boolean;
  onClick: () => void;
};
const ExportView = (props: ExportViewProps) => {
  return (
    <FactoryRenderer
      onClick={props.onClick}
      title="Export"
      rootStyle={{ className: "tmpl-export" }}
      widgetStyle={{ className: "qo-btn qo-btn-default tmpl-button", inline: { width: "100%" } }}
      uiElementType="WIDGET"
      widgetType="ICON"
      name="download"
      disabled={props.disabled}
    />
  );
};
export default ExportView;
