import React from 'react';

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

function CategoryItemRenderer({ children, ...rest }: Props) {
    return (
        <div className={`${rest.className} cursor-pointer transition-all duration-200 ease-out border-2 border-solid border-white overflow-hidden rounded-xl backdrop-blur-md bg-white/40`}>
            <div
                {...rest}
                className="rounded-normal w-[88px] h-[88px] flex flex-col justify-center items-center gap-2"
            >
                {children}
            </div>
        </div>
    );
}

export default CategoryItemRenderer;
