mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-01 04:09:12 +01:00
* feat: update prettier configuration for print width * chore: apply code formatting to entire repository * fix: remove build files * fix: format issue --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
13 lines
300 B
TypeScript
13 lines
300 B
TypeScript
import type { CreateModalOptions, ModalComponent } from "./type";
|
|
|
|
export const createModal = <TInnerProps>(component: ModalComponent<TInnerProps>) => {
|
|
return {
|
|
withOptions: (options: Partial<CreateModalOptions>) => {
|
|
return {
|
|
component,
|
|
options,
|
|
};
|
|
},
|
|
};
|
|
};
|