2022-08-24 12:16:32 +00:00
|
|
|
import { AppState } from "@appsmith/reducers";
|
2022-02-22 11:02:43 +00:00
|
|
|
|
|
|
|
|
type GetFormData = (
|
|
|
|
|
state: AppState,
|
|
|
|
|
apiId: string,
|
|
|
|
|
) => { label: string; value: string };
|
|
|
|
|
|
|
|
|
|
export const getDisplayFormat: GetFormData = (state, apiId) => {
|
|
|
|
|
const displayFormat = state.ui.apiPane.extraformData[apiId];
|
|
|
|
|
return displayFormat;
|
|
|
|
|
};
|