mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 12:53:32 +00:00
de9a7a87fd
* refactor(project structure): UI * refactor(project structure): extract utilities * refactor(project structure): remove unused * refactor(project structure): electron * refactor(project structure): server refactor: migrate to vitest refactor: monorepo config * refactor: extract application menu * refactor: exit process * refactor: extract tray menu * chore: electron build * Added Seconds in studio clock #282 --------- Co-authored-by: Fabian Posenau <fabian@fphome.de> --------- Co-authored-by: Fabian Posenau <fabian.p99@gmx.de> Co-authored-by: Fabian Posenau <fabian@fphome.de>
28 lines
742 B
React
28 lines
742 B
React
import { IconButton, Tooltip } from '@chakra-ui/react';
|
|
import { IoStop } from '@react-icons/all-files/io5/IoStop';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { tooltipDelayMid } from '../../../ontimeConfig';
|
|
|
|
export default function UnloadIconBtn(props) {
|
|
const { clickHandler, disabled, ...rest } = props;
|
|
return (
|
|
<Tooltip label='Unload event' openDelay={tooltipDelayMid} shouldWrapChildren={disabled}>
|
|
<IconButton
|
|
icon={<IoStop size='22px' />}
|
|
colorScheme='red'
|
|
variant='outline'
|
|
onClick={clickHandler}
|
|
width={90}
|
|
disabled={disabled}
|
|
{...rest}
|
|
/>
|
|
</Tooltip>
|
|
);
|
|
}
|
|
|
|
UnloadIconBtn.propTypes = {
|
|
clickHandler: PropTypes.func,
|
|
disabled: PropTypes.bool,
|
|
};
|