mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 09:15:22 +03:00
feat: added className to TimelineControls
This commit is contained in:
parent
7f8145530b
commit
614687261e
@ -12,14 +12,21 @@ export interface DisabledControls {
|
|||||||
|
|
||||||
interface TimelineControlsProps {
|
interface TimelineControlsProps {
|
||||||
disabled: DisabledControls;
|
disabled: DisabledControls;
|
||||||
|
className?: string;
|
||||||
onPlayPause: () => void;
|
onPlayPause: () => void;
|
||||||
onNext: () => void;
|
onNext: () => void;
|
||||||
onPrevious: () => void;
|
onPrevious: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TimelineControls = ({ disabled, onPlayPause, onNext, onPrevious }: TimelineControlsProps) => {
|
export const TimelineControls = ({
|
||||||
|
disabled,
|
||||||
|
onPlayPause,
|
||||||
|
onNext,
|
||||||
|
onPrevious,
|
||||||
|
className = '',
|
||||||
|
}: TimelineControlsProps) => {
|
||||||
return (
|
return (
|
||||||
<div className='flex space-x-2 self-center'>
|
<div className={`flex space-x-2 self-center ${className}`}>
|
||||||
<BubbleButton variant='secondary' onClick={onPrevious} disabled={disabled.previous}>
|
<BubbleButton variant='secondary' onClick={onPrevious} disabled={disabled.previous}>
|
||||||
<Previous />
|
<Previous />
|
||||||
</BubbleButton>
|
</BubbleButton>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user