mirror of
https://github.com/R0m1k3/Menu.git
synced 2026-10-20 05:28:06 +02:00
feat: initialize project with Next.js, Prisma, and admin dashboard functionality
This commit is contained in:
commit
b73aa8616b
37 files changed
+8711
No files matched your search
@@ -0,0 +1,32 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import styles from './GlassCard.module.css';
|
||||
|
||||
interface GlassCardProps {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
hoverable?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
as?: any;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
export const GlassCard: React.FC<GlassCardProps> = ({
|
||||
children,
|
||||
className = '',
|
||||
hoverable = false,
|
||||
style,
|
||||
as: Component = 'div',
|
||||
onClick
|
||||
}) => {
|
||||
return (
|
||||
<Component
|
||||
className={`${styles.card} ${hoverable ? styles.hoverable : ''} ${className}`}
|
||||
style={style}
|
||||
onClick={onClick}
|
||||
>
|
||||
{children}
|
||||
</Component>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user