timeEnd ? style.nextDay : ''}`} />
)}
}
clickHandler={toggleOpenEvent}
tooltip='Event options'
aria-label='Event options'
tabIndex={-1}
backgroundColor={isOpen ? '#2B5ABC' : undefined}
color={isOpen ? 'white' : '#f6f6f6'}
isDisabled={disableEdit}
/>
>
);
};
export default memo(EventBlockInner);
function EndActionIcon(props: { action: EndAction; className: string }) {
const { action, className } = props;
if (action === EndAction.LoadNext) {
return
;
}
if (action === EndAction.PlayNext) {
return
;
}
if (action === EndAction.Stop) {
return
;
}
return
;
}
function TimerIcon(props: { type: TimerType; className: string }) {
const { type, className } = props;
if (type === TimerType.CountUp) {
return
;
}
if (type === TimerType.Clock) {
return
;
}
if (type === TimerType.TimeToEnd) {
return
;
}
return
;
}