2023-08-04 15:59:36 +00:00
|
|
|
import { clsx } from 'clsx'
|
2023-11-14 15:10:00 +00:00
|
|
|
|
2023-08-04 15:59:36 +00:00
|
|
|
import { useLocalize } from '../../../context/localize'
|
2023-11-14 15:10:00 +00:00
|
|
|
import { Loading } from '../../_shared/Loading'
|
|
|
|
|
|
|
|
import styles from './AutoSaveNotice.module.scss'
|
2023-08-04 15:59:36 +00:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
active: boolean
|
|
|
|
}
|
|
|
|
|
|
|
|
export const AutoSaveNotice = (props: Props) => {
|
|
|
|
const { t } = useLocalize()
|
|
|
|
return (
|
|
|
|
<div class={clsx(styles.AutoSaveNotice, { [styles.active]: props.active })}>
|
|
|
|
<div class={styles.icon}>
|
|
|
|
<Loading size="tiny" />
|
|
|
|
</div>
|
|
|
|
<div>{t('Saving...')}</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|