mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 19:03:47 +00:00
db0eee3b9c
* chore: upgrade dependencies * feat/mac: draft pipeline * feat/mac: use public folder for transient files * feat/mac: set app fullscreen * feat/mac: cmd + , toggles menu * feat/mac: update readme * refact: easier login process * refact prevent style issues with safari * refact reduce css download * style: cleanup paginator design * style: studio clock is responsive * style: fix spacing style issues with safari
27 lines
728 B
React
27 lines
728 B
React
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Icon } from '@chakra-ui/react';
|
|
import { FiChevronUp } from '@react-icons/all-files/fi/FiChevronUp';
|
|
import style from './CollapseBar.module.scss';
|
|
|
|
export default function CollapseBar(props) {
|
|
const { title = 'Collapse bar', isCollapsed, onClick, roll } = props;
|
|
|
|
return (
|
|
<div className={roll ? style.headerRoll : style.header}>
|
|
{title}
|
|
<Icon
|
|
className={isCollapsed ? style.moreCollapsed : style.moreExpanded}
|
|
as={FiChevronUp}
|
|
onClick={onClick}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
CollapseBar.propTypes = {
|
|
title: PropTypes.string,
|
|
isCollapsed: PropTypes.bool,
|
|
onClick: PropTypes.func,
|
|
roll: PropTypes.bool,
|
|
};
|