Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

429 B
Raw Blame
export type ModalPresentation = "default" | "inspector";

interface InspectorClassNames {
  inner: string;
  content: string;
}

export const getModalPresentationClassNames = (
  presentation: ModalPresentation | undefined,
  inspectorClassNames: InspectorClassNames,
) => {
  if (presentation !== "inspector") return undefined;

  return {
    inner: inspectorClassNames.inner,
    content: inspectorClassNames.content,
  };
};