'use client';
import { forwardRef, ButtonHTMLAttributes } from 'react';
import styles from './rune-button.module.css';
export type RuneType = 'power' | 'protection' | 'wisdom' | 'shadow';
export interface RuneButtonProps extends ButtonHTMLAttributes {
/** Type of rune symbol */
runeType?: RuneType;
/** Custom glow color */
glowColor?: string;
/** Size of the button */
size?: 'sm' | 'md' | 'lg';
}
const runeSymbols: Record = {
power: 'ᛈ',
protection: 'ᛟ',
wisdom: 'ᚨ',
shadow: 'ᚦ',
};
const defaultColors: Record = {
power: '#ffd700',
protection: '#4169e1',
wisdom: '#9370db',
shadow: '#2f4f4f',
};
export const RuneButton = forwardRef(
(
{
children,
runeType = 'power',
glowColor,
size = 'md',
className,
style,
...props
},
ref
) => {
const color = glowColor || defaultColors[runeType];
const symbol = runeSymbols[runeType];
return (
);
}
);
RuneButton.displayName = 'RuneButton';
export default RuneButton;