import { Card, CardBody } from '@heroui/card' import { Input } from '@heroui/input' import { Controller } from 'react-hook-form' import type { Control } from 'react-hook-form' import SaveButtons from '@/components/button/save_buttons' import SwitchCard from '@/components/switch_card' export interface OneBotConfigCardProps { control: Control onSubmit: () => void reset: () => void isSubmitting: boolean onRefresh: () => void } const OneBotConfigCard: React.FC = (props) => { const { control, onSubmit, reset, isSubmitting, onRefresh } = props return ( <> OneBot配置 - NapCat WebUI
( )} /> ( )} /> ( )} />
) } export default OneBotConfigCard