mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
types.ts
This commit is contained in:
@@ -1,22 +1,8 @@
|
||||
"use client"
|
||||
import { useRouter } from "next/navigation";
|
||||
import { Site } from "@/app/types";
|
||||
|
||||
interface SitesProps {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
networks: Network[];
|
||||
}
|
||||
|
||||
interface Network {
|
||||
id: number;
|
||||
name: string;
|
||||
ipv4Subnet?: string;
|
||||
ipv6Subnet?: string;
|
||||
gateway?: string;
|
||||
}
|
||||
|
||||
export default function Sites({ id, name, description, networks }: SitesProps) {
|
||||
export default function Sites({ id, name, description, networks }: Site) {
|
||||
const router = useRouter();
|
||||
return (
|
||||
<div className="card bg-base-200 shadow-xl">
|
||||
|
||||
Reference in New Issue
Block a user