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