|
|
|
@ -2,11 +2,14 @@ type Checklist = Record<string, boolean>; |
|
|
|
|
|
|
|
|
|
type ArrayChecklist = (keyof Checklist)[]; |
|
|
|
|
|
|
|
|
|
type BuildDeleteDialogPropsFunction = (args: { |
|
|
|
|
type BuildDeleteDialogPropsFunction = ( |
|
|
|
|
args: { |
|
|
|
|
confirmDialogProps?: Partial<Omit<ConfirmDialogProps, 'content'>>; |
|
|
|
|
formSummaryProps?: Omit<FormSummaryProps<Checklist>, 'entries'>; |
|
|
|
|
getConfirmDialogTitle: (length: number) => ReactNode; |
|
|
|
|
}) => ConfirmDialogProps; |
|
|
|
|
} & Pick<ConfirmDialogProps, 'onProceedAppend'> & |
|
|
|
|
Pick<FormSummaryProps<Checklist>, 'renderEntry'>, |
|
|
|
|
) => ConfirmDialogProps; |
|
|
|
|
|
|
|
|
|
type GetCheckFunction = (key: string) => boolean; |
|
|
|
|
|
|
|
|
|