import React from "react"; import BaseControl, { ControlProps } from "./BaseControl"; import { ControlType } from "constants/PropertyControlConstants"; import FormControl from "pages/Editor/FormControl"; import FormLabel from "components/editorComponents/FormLabel"; import { Colors } from "constants/Colors"; import styled from "styled-components"; export const StyledFormLabel = styled(FormLabel)` margin-top: 5px; font-weight: 400; font-size: 12px; color: ${Colors.GREY_7}; line-height: 16px; `; export const FormControlContainer = styled.div` display: flex; flex-direction: column; margin-bottom: 10px; `; // using query dynamic input text for both so user can dynamically change these values. const valueFieldConfig: any = { key: "value", controlType: "QUERY_DYNAMIC_INPUT_TEXT", placeholderText: "value", }; const limitFieldConfig: any = { ...valueFieldConfig, placeholderText: "20", }; const offsetFieldConfig: any = { ...valueFieldConfig, placeholderText: "0", }; export function Pagination(props: { label: string; isValid: boolean; validationMessage?: string; placeholder?: string; isRequired?: boolean; name: string; disabled?: boolean; customStyles?: any; configProperty: string; formName: string; }) { const { configProperty, customStyles, formName, name } = props; return (