import clsx from "clsx"; import styles from "./kbd.module.css"; interface KBDProps { meta?: boolean; shift?: boolean; alt?: boolean; ctrl?: boolean; small?: boolean; } const KBD: React.FC> = ({ meta, shift, alt, ctrl, small, children, }) => { return ( {meta && } {ctrl && } {shift && } {alt && } {children && {children}} ); }; export default KBD;