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
+3 -3
View File
@@ -3,7 +3,7 @@
Provides classes for styling footnotes
-->
<script lang="ts">
import clsx from 'clsx';
import { cn } from '$shared/lib';
import type { Snippet } from 'svelte';
interface Props {
@@ -26,14 +26,14 @@ const { children, class: className, render }: Props = $props();
{#if render}
{@render render({
class: clsx(
class: cn(
'font-mono text-3xs sm:text-2xs lowercase tracking-wider-mono text-text-soft',
className,
),
})}
{:else if children}
<span
class={clsx(
class={cn(
'font-mono text-3xs sm:text-2xs lowercase tracking-wider-mono text-text-soft',
className,
)}