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