diff --git a/ui/src/components/header/beta-info/beta-info.module.scss b/ui/src/components/header/beta-info/beta-info.module.scss new file mode 100644 index 000000000..00dcaf0cd --- /dev/null +++ b/ui/src/components/header/beta-info/beta-info.module.scss @@ -0,0 +1,24 @@ +@import 'src/design-system/variables/variables.scss'; +@import 'src/design-system/variables/colors.scss'; +@import 'src/design-system/variables/typography.scss'; + +.wrapper { + display: flex; + align-items: center; + justify-content: center; + gap: 16px; +} + +.badge { + padding: 4px 16px; + border-radius: 4px; + background-color: $color-success-100; + color: $color-success-700; + text-align: center; + @include label(); +} + +.version { + @include paragraph-x-small(); + white-space: nowrap; +} diff --git a/ui/src/components/header/beta-info/beta-info.tsx b/ui/src/components/header/beta-info/beta-info.tsx new file mode 100644 index 000000000..1e4aef75d --- /dev/null +++ b/ui/src/components/header/beta-info/beta-info.tsx @@ -0,0 +1,19 @@ +import { Tooltip } from 'design-system/components/tooltip/tooltip' +import styles from './beta-info.module.scss' + +const COPY = { + LABEL: 'Beta', + INFO: 'All data is considered test data and may be changed or deleted at any time. Use with caution.', + VERSION: `Build ${__COMMIT_HASH__}`, +} + +export const BetaInfo = () => { + return ( +