botframework-webchat-component
Version:
React component of botframework-webchat
23 lines (21 loc) • 725 B
text/typescript
import { StrictStyleOptions } from 'botframework-webchat-api';
export default function ConnectivityNotification({
connectivityMarginLeftRight,
connectivityMarginTopBottom,
connectivityTextSize,
notificationText,
primaryFont
}: StrictStyleOptions) {
return {
alignItems: 'center',
color: notificationText,
// TODO: [P2] We should not set "display" in styleSet, this will allow the user to break the layout for no good reasons.
display: 'flex',
fontFamily: primaryFont,
fontSize: connectivityTextSize,
marginBottom: connectivityMarginTopBottom,
marginLeft: connectivityMarginLeftRight,
marginRight: connectivityMarginLeftRight,
marginTop: connectivityMarginTopBottom
};
}