mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-11 23:40:24 +00:00
* feat: 统一并标准化eslint * lint: napcat.webui * lint: napcat.webui * lint: napcat.core * build: fix * lint: napcat.webui * refactor: 重构eslint * Update README.md
20 lines
359 B
TypeScript
20 lines
359 B
TypeScript
import clsx from 'clsx';
|
|
|
|
export interface IconWrapperProps {
|
|
children?: React.ReactNode
|
|
className?: string
|
|
}
|
|
|
|
const IconWrapper = ({ children, className }: IconWrapperProps) => (
|
|
<div
|
|
className={clsx(
|
|
className,
|
|
'flex items-center rounded-small justify-center w-7 h-7'
|
|
)}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
|
|
export default IconWrapper;
|