forked from jellyfin/jellyfin-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSectionTitleContainer.tsx
More file actions
32 lines (28 loc) · 942 Bytes
/
Copy pathSectionTitleContainer.tsx
File metadata and controls
32 lines (28 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React, { FunctionComponent } from 'react';
import IconButtonElement from './IconButtonElement';
type IProps = {
SectionClassName?: string;
title?: string;
isBtnVisible?: boolean;
btnId?: string;
btnClassName?: string;
btnTitle?: string;
btnIcon?: string;
};
const SectionTitleContainer: FunctionComponent<IProps> = ({ SectionClassName, title, isBtnVisible = false, btnId, btnClassName, btnTitle, btnIcon }: IProps) => {
return (
<div className={`${SectionClassName} sectionTitleContainer flex align-items-center`}>
<h2 className='sectionTitle'>
{title}
</h2>
{isBtnVisible && <IconButtonElement
is='emby-button'
id={btnId}
className={btnClassName}
title={btnTitle}
icon={btnIcon}
/>}
</div>
);
};
export default SectionTitleContainer;