github
1314 of 1504 branches covered (87.37%)
Branch coverage included in aggregate %.
650 of 650 new or added lines in 38 files covered. (100.0%)
13478 of 13897 relevant lines covered (96.98%)
12.76 hits per line
|
import { |
1✔ |
|
useAlert, |
1✔ |
|
useConfirm, |
1✔ |
|
useModalBuilder, |
1✔ |
|
usePrompt |
1✔ |
|
} from '@inkline/inkline/composables/modals'; |
1✔ |
|
|
1✔ |
|
export function useModal() {
|
1✔ |
|
const builder = useModalBuilder();
|
× |
|
const alert = useAlert();
|
× |
|
const confirm = useConfirm();
|
× |
|
const prompt = usePrompt();
|
× |
|
|
× |
|
return {
|
× |
|
...builder, |
× |
|
alert, |
× |
|
confirm, |
× |
|
prompt |
× |
|
}; |
× |
|
} |
× |