forked from VinokurovVE/tests
Tables, cards, (servers)
This commit is contained in:
17
frontend_reactjs/src/components/ServerData.tsx
Normal file
17
frontend_reactjs/src/components/ServerData.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import { Box } from '@mui/material'
|
||||
import { IServer } from '../interfaces/servers'
|
||||
import { useServerIps } from '../hooks/swrHooks'
|
||||
|
||||
function ServerData({ id, name, region_id }: IServer) {
|
||||
const { serverIps } = useServerIps(id, 0, 10)
|
||||
|
||||
return (
|
||||
<Box>
|
||||
{serverIps &&
|
||||
JSON.stringify(serverIps)
|
||||
}
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
||||
export default ServerData
|
Reference in New Issue
Block a user