mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 03:43:50 +00:00
dda92ba3a8
* refactor: implement import lint
25 lines
594 B
React
25 lines
594 B
React
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import style from './TitleCard.module.scss';
|
|
|
|
export default function TitleCard(props) {
|
|
const { label, title, subtitle, presenter } = props;
|
|
|
|
return (
|
|
<>
|
|
<div className={style.label}>{label}</div>
|
|
<div className={style.title}>{title}</div>
|
|
<div className={style.presenter}>{presenter}</div>
|
|
<div className={style.subtitle}>{subtitle}</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
TitleCard.propTypes = {
|
|
label: PropTypes.string,
|
|
title: PropTypes.string,
|
|
subtitle: PropTypes.string,
|
|
presenter: PropTypes.string,
|
|
}
|