mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
move SectionTitleContainer into its own Components
This commit is contained in:
parent
ed6ca6b097
commit
01d29bcf11
6 changed files with 36 additions and 67 deletions
25
src/components/dashboard/users/SectionTitleContainer.tsx
Normal file
25
src/components/dashboard/users/SectionTitleContainer.tsx
Normal file
|
@ -0,0 +1,25 @@
|
|||
import React, { FunctionComponent } from 'react';
|
||||
import SectionTitleLinkElement from './SectionTitleLinkElement';
|
||||
|
||||
type IProps = {
|
||||
title: string;
|
||||
}
|
||||
|
||||
const SectionTitleContainer: FunctionComponent<IProps> = ({title}: IProps) => {
|
||||
return (
|
||||
<div className='verticalSection'>
|
||||
<div className='sectionTitleContainer flex align-items-center'>
|
||||
<h2 className='sectionTitle'>
|
||||
{title}
|
||||
</h2>
|
||||
<SectionTitleLinkElement
|
||||
className='raised button-alt headerHelpButton'
|
||||
title='Help'
|
||||
url='https://docs.jellyfin.org/general/server/users/'
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SectionTitleContainer;
|
Loading…
Add table
Add a link
Reference in a new issue