2021-10-15 23:38:03 +03:00
|
|
|
import React, { FunctionComponent } from 'react';
|
|
|
|
import globalize from '../../../scripts/globalize';
|
|
|
|
|
|
|
|
type IProps = {
|
|
|
|
title?: string;
|
|
|
|
className?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
const createLinkElement = ({ className, title }) => ({
|
|
|
|
__html: `<a
|
|
|
|
is="emby-linkbutton"
|
|
|
|
class="${className}"
|
|
|
|
href='#'
|
|
|
|
>
|
|
|
|
${title}
|
|
|
|
</a>`
|
|
|
|
});
|
|
|
|
|
2021-11-20 16:15:42 +03:00
|
|
|
const LinkEditUserPreferences: FunctionComponent<IProps> = ({ className, title }: IProps) => {
|
2021-10-15 23:38:03 +03:00
|
|
|
return (
|
|
|
|
<div
|
|
|
|
dangerouslySetInnerHTML={createLinkElement({
|
|
|
|
className: className,
|
|
|
|
title: globalize.translate(title)
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2021-11-20 16:15:42 +03:00
|
|
|
export default LinkEditUserPreferences;
|