feat: replace clsx with cn util

This commit is contained in:
Ilia Mashkov
2026-04-23 09:48:32 +03:00
parent cffebf05e3
commit 54087b7b2a
34 changed files with 91 additions and 92 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
correctly via the HTML element's class attribute.
-->
<script lang="ts">
import clsx from 'clsx';
import { cn } from '$shared/lib';
import type {
Component,
Snippet,
@@ -32,7 +32,7 @@ let { icon: Icon, class: className, attrs = {} }: Props = $props();
</script>
{#if Icon}
{@const __iconClass__ = clsx('size-4', className)}
{@const __iconClass__ = cn('size-4', className)}
<!-- Render icon component dynamically with class prop -->
<Icon
class={__iconClass__}