"use client" import useCommands from "@/lib/hooks/useCommands" import styles from "@/styles/docs/commands.module.css" function CommandInfo({ command }: { command: ApplicationCommand }) { const { name, description, default_member_permissions: permissions, dm_permission: dmUsable, options } = command return (
{name}
) } export default function Commands() { const commands = useCommands() function renderCommandsInfo(commands: ApplicationCommand[]) { return commands.map((command, i) => ) } return (

Commands

{commands ? (commands.length > 0 ? renderCommandsInfo(commands) :
Commands not found
) :
Loading...
}
) }