Private
Public Access
refactor: /permisos
This commit is contained in:
1 parent
b67008c23e
commit
a35539590a
2 files changed
+43
-28
No files matched your search
@@ -0,0 +1,30 @@
|
||||
<script lang="ts">
|
||||
import { ToastNotification } from 'carbon-components-svelte';
|
||||
|
||||
let {
|
||||
kind = 'success',
|
||||
title = '',
|
||||
subtitle = '',
|
||||
open = false
|
||||
}: {
|
||||
kind?: 'success' | 'error' | 'warning' | 'info' | 'info-square' | 'warning-alt';
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
open?: boolean;
|
||||
} = $props();
|
||||
</script>
|
||||
|
||||
{#if open}
|
||||
<div class="wrapper">
|
||||
<ToastNotification {kind} {title} {subtitle} hideCloseButton open />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.wrapper {
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
z-index: 10000;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user