11import { useAllVPCsQuery } from '@linode/queries' ;
2- import { Button , CircleProgress , ErrorState , Typography } from '@linode/ui' ;
2+ import {
3+ BetaChip ,
4+ Button ,
5+ CircleProgress ,
6+ ErrorState ,
7+ Typography ,
8+ } from '@linode/ui' ;
39import { Grid } from '@mui/material' ;
410import React from 'react' ;
511import { makeStyles } from 'tss-react/mui' ;
612
13+ import { Link } from 'src/components/Link' ;
14+ import { useFlags } from 'src/hooks/useFlags' ;
15+
16+ import { MANAGE_NETWORKING_LEARN_MORE_LINK } from '../../constants' ;
717import { getReadOnlyHost } from '../../utilities' ;
818import {
919 StyledGridContainer ,
@@ -41,6 +51,7 @@ export const DatabaseManageNetworking = ({ database }: Props) => {
4151 } ,
4252 sectionTitle : {
4353 marginBottom : '0.25rem' ,
54+ display : 'flex' ,
4455 } ,
4556 sectionTitleAndText : {
4657 width : '100%' ,
@@ -59,6 +70,7 @@ export const DatabaseManageNetworking = ({ database }: Props) => {
5970 } ,
6071 } ) ) ;
6172
73+ const flags = useFlags ( ) ;
6274 const { classes } = useStyles ( ) ;
6375 const [ isManageNetworkingDrawerOpen , setIsManageNetworkingDrawerOpen ] =
6476 React . useState ( false ) ;
@@ -118,9 +130,15 @@ export const DatabaseManageNetworking = ({ database }: Props) => {
118130 < div className = { classes . sectionTitleAndText } >
119131 < div className = { classes . sectionTitle } >
120132 < Typography variant = "h3" > Manage Networking</ Typography >
133+ { flags . databaseVpcBeta && < BetaChip /> }
121134 </ div >
122135 < Typography sx = { { maxWidth : '500px' } } >
123- Update access settings or the VPC assignment.
136+ Update access settings or the VPC assignment.{ ' ' }
137+ < Link
138+ to = { `${ MANAGE_NETWORKING_LEARN_MORE_LINK + ( flags . databaseVpcBeta ? '-beta' : '' ) } ` }
139+ >
140+ Learn more.
141+ </ Link >
124142 < br />
125143 Note that a change of VPC assignment settings can disrupt service
126144 availability. Avoid writing data to the database while a change is
0 commit comments