'use client';

import { glassSurface } from '@/lib/styles/glassSurface';
import React from 'react';

type Props = {
    children: React.ReactNode;
} & React.HTMLAttributes<HTMLDivElement>;

function CategoryItemRenderer({ 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 w-[108px] h-[88px] flex flex-col justify-center items-center gap-2 overflow-hidden"
            >
                {children}
            </div>
        </div>
    );
}

export default CategoryItemRenderer;
