mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-06 01:21:39 -04:00
23 lines
498 B
TypeScript
23 lines
498 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import React from 'react'
|
|
import './active-indicator.scss'
|
|
|
|
export enum ActiveIndicatorStatus {
|
|
ACTIVE = 'active',
|
|
INACTIVE = 'inactive'
|
|
}
|
|
|
|
export interface ActiveIndicatorProps {
|
|
status: ActiveIndicatorStatus;
|
|
}
|
|
|
|
export const ActiveIndicator: React.FC<ActiveIndicatorProps> = ({ status }) => {
|
|
return (
|
|
<span className={`activeIndicator ${status}`}/>
|
|
)
|
|
}
|