bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/default-content/component.jsx

36 lines
1.0 KiB
React
Raw Normal View History

import React from 'react';
import { FormattedMessage } from 'react-intl';
import { TransitionGroup } from 'react-transition-group';
import Settings from '/imports/ui/services/settings';
import Styled from './styles';
export default (props) => {
2022-02-23 01:50:31 +08:00
const { hidePresentation } = props;
const { animations } = Settings.application;
return (
<TransitionGroup>
<Styled.Transition
classNames="transition"
appear
enter={false}
exit={false}
timeout={{ enter: 400 }}
>
<Styled.Content animations={animations}>
<Styled.DefaultContent hideContent={autoSwapLayout && hidePresentation}>
<p>
<FormattedMessage
id="app.home.greeting"
description="Message to greet the user."
defaultMessage="Your presentation will begin shortly..."
/>
<br />
</p>
</Styled.DefaultContent>
</Styled.Content>
</Styled.Transition>
</TransitionGroup>
);
};