(
({ type = 'divider', symbol = 'cross', symbols, variant = 'gold', size = 'md', animated = false, position = 'all', className = '', ...props }, ref) => {
const color = variantColors[variant];
const sizes = sizeClasses[size];
const sym = getSymbol(symbol);
const animClass = animated ? 'animate-pulse' : '';
if (type === 'divider') {
return (
{sym}
);
}
if (type === 'fleuron') {
return (
{sym}
);
}
if (type === 'symbols') {
const syms = symbols || ['star', 'diamond', 'star'];
return (
{syms.map((s, i) => (
{getSymbol(s)}
))}
);
}
if (type === 'corner') {
const cornerPositions = {
'top-left': 'top-0 left-0',
'top-right': 'top-0 right-0 -scale-x-100',
'bottom-left': 'bottom-0 left-0 -scale-y-100',
'bottom-right': 'bottom-0 right-0 -scale-100',
};
const corners = position === 'all' ? Object.keys(cornerPositions) : [position];
return (
<>
{corners.map((pos) => (
{sym}
))}
>
);
}
if (type === 'frame') {
return (
);
}
return null;
}
);
Ornaments.displayName = 'Ornaments';
export default Ornaments;