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
@@ -3,8 +3,8 @@
Renders multiple Stat components in a row with auto-separators.
-->
<script lang="ts">
import { cn } from '$shared/lib';
import { Stat } from '$shared/ui';
import clsx from 'clsx';
import type { ComponentProps } from 'svelte';
interface StatItem extends Partial<Pick<ComponentProps<typeof Stat>, 'variant'>> {
@@ -26,7 +26,7 @@ interface Props {
let { stats, class: className }: Props = $props();
</script>
<div class={clsx('flex items-center gap-4', className)}>
<div class={cn('flex items-center gap-4', className)}>
{#each stats as stat, i}
<Stat
label={stat.label}