Skip to content

Commit

Permalink
fix: review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Jun 10, 2024
1 parent 227b0e5 commit f96c2d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/theme/getRootClassName.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import {block} from '../utils/cn';
import type {CnMods} from '../utils/cn';

import {ROOT_CLASSNAME} from './constants';

const b = block(ROOT_CLASSNAME);

export function getRootClassName(mods: CnMods, className: string) {
return b(mods, className);
interface RootMods {
theme?: string;
}

export function getRootClassName({theme}: RootMods = {}, className?: string) {
return b({theme}, className);
}

0 comments on commit f96c2d0

Please sign in to comment.