Files
NapCatQQ/napcat.webui/src/components/github_info/icon_wrapper.tsx
2025-01-24 21:13:44 +08:00

20 lines
356 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