mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-09-14 07:06:53 +08:00
feat: refactor select model
This commit is contained in:
@@ -2,7 +2,7 @@ import * as React from "react";
|
||||
|
||||
export type ButtonType = "primary" | "danger" | null;
|
||||
|
||||
export default function Btn(props: {
|
||||
export interface BtnProps {
|
||||
onClick?: () => void;
|
||||
icon?: JSX.Element;
|
||||
type?: ButtonType;
|
||||
@@ -14,7 +14,9 @@ export default function Btn(props: {
|
||||
disabled?: boolean;
|
||||
tabIndex?: number;
|
||||
autoFocus?: boolean;
|
||||
}) {
|
||||
}
|
||||
|
||||
export default function Btn(props: BtnProps) {
|
||||
const {
|
||||
onClick,
|
||||
icon,
|
||||
|
Reference in New Issue
Block a user