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

export type ResetViewProps = {
  disabled: boolean;
  onReset: () => void;
};

const ResetView = (props: ResetViewProps) => {
  return (
    <FactoryRenderer
      disabled={props.disabled}
      rootStyle={{ className: "tmpl-reset" }}
      widgetStyle={{ className: "qo-btn qo-btn-default tmpl-button", inline: { width: "100%" } }}
      onClick={props.onReset}
      name="reset"
      title="Reset"
      uiElementType="WIDGET"
      widgetType="ICON"
    />
  );
};
export default ResetView;
