mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-20 10:00:08 +02:00
21 lines
557 B
TypeScript
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'),
|
|
);
|