fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
12 lines
260 B
TypeScript
12 lines
260 B
TypeScript
import { variants } from "./variants"
|
|
|
|
import type { CardProps } from "./types"
|
|
|
|
export function Card({ as, className, children }: CardProps) {
|
|
const classNames = variants({
|
|
as,
|
|
className,
|
|
})
|
|
return <div className={classNames}>{children}</div>
|
|
}
|