mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-27 23:06:29 -04:00
22 lines
409 B
TypeScript
22 lines
409 B
TypeScript
import React from 'react';
|
|
import Link, { LinkProps } from 'Components/Link/Link';
|
|
|
|
export interface SeriesTitleLinkProps extends LinkProps {
|
|
titleSlug: string;
|
|
title: string;
|
|
}
|
|
|
|
export default function SeriesTitleLink({
|
|
titleSlug,
|
|
title,
|
|
...linkProps
|
|
}: SeriesTitleLinkProps) {
|
|
const link = `/series/${titleSlug}`;
|
|
|
|
return (
|
|
<Link to={link} {...linkProps}>
|
|
{title}
|
|
</Link>
|
|
);
|
|
}
|