1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Move trickplay settings to react

This commit is contained in:
Nick 2024-03-18 12:28:38 -07:00
parent fc664090cc
commit 08f9ec9f01
6 changed files with 326 additions and 146 deletions

View file

@ -0,0 +1,33 @@
import React, { FunctionComponent } from 'react';
import globalize from '../../../../scripts/globalize';
type IProps = {
title?: string;
className?: string;
href?: string;
};
const createLinkElement = ({ className, title, href }: IProps) => ({
__html: `<a
is="emby-linkbutton"
rel="noopener noreferrer"
class="${className}"
href="${href}"
>
${title}
</a>`
});
const LinkTrickplayAcceleration: FunctionComponent<IProps> = ({ className, title, href }: IProps) => {
return (
<div
dangerouslySetInnerHTML={createLinkElement({
className: className,
title: globalize.translate(title),
href: href
})}
/>
);
};
export default LinkTrickplayAcceleration;