Files
dmenu-plus-front/src/components/listview/CategorySmallItemRenderer.tsx
T
hamid zarghami d592dd525e
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled
fix design bug category
2026-06-23 16:08:17 +03:30

24 lines
772 B
TypeScript

'use client';
import { glassSurface } from '@/lib/styles/glassSurface';
import React from 'react';
type Props = {
children: React.ReactNode;
} & React.HTMLAttributes<HTMLDivElement>;
function CategorySmallItemRenderer({ children, ...rest }: Props) {
return (
<div className={glassSurface(rest.className, 'cursor-pointer transition-[background-color,box-shadow,opacity] duration-200 ease-out rounded-xl outline-none [-webkit-tap-highlight-color:transparent]')}>
<div
{...rest}
className="rounded-normal h-[44px] flex flex-row justify-center items-center p-2.5 gap-2 overflow-hidden"
>
{children}
</div>
</div>
);
}
export default CategorySmallItemRenderer;