Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: review fixes
Browse files Browse the repository at this point in the history
amje committed Jun 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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.