2023-05-20 23:53:28 +00:00
|
|
|
<script>
|
2023-08-02 19:35:27 +01:00
|
|
|
import Modal from '$lib/components/Modal/index.svelte';
|
|
|
|
|
import PrimaryButton from '$lib/components/PrimaryButton/index.svelte';
|
|
|
|
|
import { VARIANTS } from '$lib/components/PrimaryButton/constants';
|
2023-05-20 23:53:28 +00:00
|
|
|
|
|
|
|
|
export let onDelete = () => {};
|
|
|
|
|
export let onCancel = () => {};
|
|
|
|
|
export let open = false;
|
|
|
|
|
</script>
|
|
|
|
|
|
2023-08-20 19:08:48 +00:00
|
|
|
<Modal onClose={() => (open = false)} bind:open width="w-96" modalHeading="Delete comment">
|
2023-05-20 23:53:28 +00:00
|
|
|
<div>
|
2023-08-20 19:08:48 +00:00
|
|
|
<h1 class="dark:text-white text-lg">Are you sure you want to delete this comment?</h1>
|
2023-05-20 23:53:28 +00:00
|
|
|
|
|
|
|
|
<div class="mt-5 flex items-center justify-between">
|
|
|
|
|
<PrimaryButton
|
|
|
|
|
className="px-6 py-3"
|
|
|
|
|
variant={VARIANTS.OUTLINED}
|
|
|
|
|
label="No, keep it"
|
|
|
|
|
onClick={onCancel}
|
|
|
|
|
/>
|
|
|
|
|
<PrimaryButton
|
|
|
|
|
className="px-6 py-3"
|
2023-08-20 19:08:48 +00:00
|
|
|
variant={VARIANTS.CONTAINED}
|
2023-05-20 23:53:28 +00:00
|
|
|
label="Yes, delete"
|
|
|
|
|
onClick={onDelete}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|