Tasks
{commands.map((command: CommandInterface, index: number) => (
))}
import Head from 'next/head' import styles from '../styles/Home.module.css' import {OptionInterface} from "../components/option"; import {ArgumentInterface} from "../components/argument"; import Command from "../components/command"; interface CommandInterface { class: string, name: string, description: string, options: OptionInterface[], arguments: ArgumentInterface[], } interface CommandsInterface { commands: CommandInterface[], } export default function Home({commands}: CommandsInterface) { return ( <>