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.

300 B
Raw Blame
import type { CreateModalOptions, ModalComponent } from "./type";

export const createModal = <TInnerProps>(component: ModalComponent<TInnerProps>) => {
  return {
    withOptions: (options: Partial<CreateModalOptions>) => {
      return {
        component,
        options,
      };
    },
  };
};