Files
stats/apps/public/components/Swirls.tsx
2024-12-30 22:45:59 +01:00

37 lines
757 B
TypeScript

import { cn } from '@/lib/utils';
import Image, { type ImageProps } from 'next/image';
type SwirlProps = Omit<ImageProps, 'src' | 'alt'>;
export function SingleSwirl({ className, ...props }: SwirlProps) {
return (
<Image
{...props}
src="/swirl-2.png"
alt="Swirl"
className={cn(
'pointer-events-none w-full h-full object-cover',
className,
)}
width={1200}
height={1200}
/>
);
}
export function DoubleSwirl({ className, ...props }: SwirlProps) {
return (
<Image
{...props}
src="/swirl.png"
alt="Swirl"
className={cn(
'pointer-events-none w-full h-full object-cover',
className,
)}
width={1200}
height={1200}
/>
);
}