mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 22:49:18 +00:00
make components reusable
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import { Icon } from '@chakra-ui/react';
|
||||
import { FiChevronUp } from 'react-icons/fi';
|
||||
import style from './Info.module.css';
|
||||
|
||||
export default function InfoTitle(props) {
|
||||
const { title, data } = props;
|
||||
return (
|
||||
<div className={style.container}>
|
||||
<div className={style.header}>
|
||||
{title}
|
||||
<Icon
|
||||
className={style.moreExpanded}
|
||||
as={FiChevronUp}
|
||||
marginTop='-0.5em'
|
||||
// onClick={() => props.setCollapsed(true)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span className={style.label}>Title: </span>Demo title
|
||||
</div>
|
||||
<div>
|
||||
<span className={style.label}>Subtitle: </span>Demo Subtitle
|
||||
</div>
|
||||
<div>
|
||||
<span className={style.label}>Presenter: </span>Demo Presenter Name
|
||||
</div>
|
||||
<div>
|
||||
<span className={style.label}>Notes: </span>Demo Notes
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user