import type { GradientColor, GradientType } from '@openmaic/dsl';
interface GradientDefsProps {
id: string;
type: GradientType;
colors: GradientColor[];
rotate?: number;
}
export function GradientDefs({ id, type, colors, rotate = 0 }: GradientDefsProps) {
if (type === 'linear') {
return (
{colors.map((item, index) => (
))}
);
}
return (
{colors.map((item, index) => (
))}
);
}