mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
* refactored common code in recommendation row * Implement front page options in config * Allow customisation from front page * Rename recommendations to front page * Add generic UI settings * Support adding premade filters Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
25 lines
460 B
TypeScript
25 lines
460 B
TypeScript
import React, { PropsWithChildren } from "react";
|
|
|
|
interface IProps {
|
|
className?: string;
|
|
header: String;
|
|
link: JSX.Element;
|
|
}
|
|
|
|
export const RecommendationRow: React.FC<PropsWithChildren<IProps>> = ({
|
|
className,
|
|
header,
|
|
link,
|
|
children,
|
|
}) => (
|
|
<div className={`recommendation-row ${className}`}>
|
|
<div className="recommendation-row-head">
|
|
<div>
|
|
<h2>{header}</h2>
|
|
</div>
|
|
{link}
|
|
</div>
|
|
{children}
|
|
</div>
|
|
);
|