mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-15 16:27:26 +02:00
33845aeec2
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
15 lines
381 B
Svelte
15 lines
381 B
Svelte
<script>
|
|
import { toEvent } from '$lib/utils/events';
|
|
export let eventName;
|
|
|
|
// reactive statement to update event when eventName prop changes
|
|
$: event = toEvent(eventName);
|
|
</script>
|
|
|
|
<div
|
|
class="flex items-center text-ellipsis text-gray-900 dark:text-gray-200 transition-colors duration-200"
|
|
>
|
|
<div class="w-4 h-4 {event.color} mr-2 rounded-sm"></div>
|
|
{event.name}
|
|
</div>
|