import React from "react"; import { createMessage } from "@appsmith/constants/messages"; import { Button, Category } from "design-system"; import styled from "styled-components"; const StyledButton = styled(Button)` height: 24px; display: inline-block; margin-right: 16px; `; const StyledSaveButton = styled(StyledButton)` width: 128px; height: 38px; & .cs-spinner { top: 11px; } `; const StyledClearButton = styled(StyledButton)` width: 68px; height: 38px; `; const SettingsButtonWrapper = styled.div` position: fixed; bottom: 0; left: 0; width: 100%; height: ${(props) => props.theme.settings.footerHeight}px; padding: ${(props) => props.theme.spaces[11]}px 0px 0px ${(props) => props.theme.homePage.leftPane.leftPadding + props.theme.homePage.leftPane.width + props.theme.homePage.main.marginLeft - props.theme.spaces[11]}px; box-shadow: ${(props) => props.theme.settings.footerShadow}; z-index: 2; background-color: ${(props) => props.theme.colors.homepageBackground}; `; type SaveAdminSettingsProps = { isSaving?: boolean; onSave?: () => void; onClear?: () => void; settings: Record; valid: boolean; }; const saveAdminSettings = (props: SaveAdminSettingsProps) => { const { isSaving, onClear, onSave, settings, valid } = props; return ( "Save & Restart")} /> "Reset")} /> ); }; export default saveAdminSettings;