mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
* wip: add board access settings * wip: add user access control * wip: add user access control * feat: add user access control * refactor: move away from mantine-modal-manager * fix: ci issues and failing tests * fix: lint issue * fix: format issue * fix: deepsource issues * chore: address pull request feedback
15 lines
305 B
TypeScript
15 lines
305 B
TypeScript
import type { CreateModalOptions, ModalComponent } from "./type";
|
|
|
|
export const createModal = <TInnerProps>(
|
|
component: ModalComponent<TInnerProps>,
|
|
) => {
|
|
return {
|
|
withOptions: (options: Partial<CreateModalOptions>) => {
|
|
return {
|
|
component,
|
|
options,
|
|
};
|
|
},
|
|
};
|
|
};
|