mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-13 00:43:15 +08:00
27 lines
878 B
TypeScript
27 lines
878 B
TypeScript
import { AdminServerContext } from '@/state/admin/server'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { Link } from 'react-router-dom'
|
|
|
|
import Button from '@/components/elements/Button'
|
|
|
|
import ServerContentBlock from '@/components/admin/servers/ServerContentBlock'
|
|
|
|
|
|
const ServerOverviewContainer = () => {
|
|
const server = AdminServerContext.useStoreState(state => state.server.data!)
|
|
|
|
const { t } = useTranslation('admin.servers.overview')
|
|
const { t: tStrings } = useTranslation('strings')
|
|
|
|
return (
|
|
<ServerContentBlock title={tStrings('overview')}>
|
|
<Link to={`/servers/${server.id}`}>
|
|
<Button className='inline-flex items-center' as={'span'}>
|
|
{t('enter_server_console')}
|
|
</Button>
|
|
</Link>
|
|
</ServerContentBlock>
|
|
)
|
|
}
|
|
|
|
export default ServerOverviewContainer |