Files
decky-frontend-lib/src/components/Marquee.ts
AAGaming 688c7471cd fix(components): fix missing children prop
also remove unnessecary use of tsx
2024-05-27 13:19:11 -04:00

21 lines
557 B
TypeScript

import { CSSProperties, FC } from 'react';
import { Export, findModuleExport } from '../webpack';
export interface MarqueeProps {
play?: boolean;
direction?: 'left' | 'right';
speed?: number;
delay?: number;
fadeLength?: number;
center?: boolean;
resetOnPause?: boolean;
style?: CSSProperties;
className?: string;
children: React.ReactNode;
}
export const Marquee: FC<MarqueeProps> = findModuleExport(
(e: Export) => e?.toString && e.toString().includes('.Marquee') && e.toString().includes('--fade-length'),
);