chore: add types in the proper directory

This commit is contained in:
Pablo Lara
2024-09-27 10:45:12 +02:00
parent 8e1c8304d8
commit fbb5ede272
2 changed files with 18 additions and 16 deletions
+1 -16
View File
@@ -2,22 +2,7 @@ import { Button, CircularProgress } from "@nextui-org/react";
import type { PressEvent } from "@react-types/shared";
import clsx from "clsx";
type NextUIVariants =
| "solid"
| "faded"
| "bordered"
| "light"
| "flat"
| "ghost"
| "shadow";
type NextUIColors =
| "primary"
| "secondary"
| "success"
| "warning"
| "danger"
| "default";
import { NextUIColors, NextUIVariants } from "@/types";
export const buttonClasses = {
base: "px-2 inline-flex items-center justify-center relative z-0 text-center whitespace-nowrap",
+17
View File
@@ -9,6 +9,23 @@ export type IconProps = {
style?: React.CSSProperties;
};
export type NextUIVariants =
| "solid"
| "faded"
| "bordered"
| "light"
| "flat"
| "ghost"
| "shadow";
export type NextUIColors =
| "primary"
| "secondary"
| "success"
| "warning"
| "danger"
| "default";
export interface SearchParamsProps {
[key: string]: string | string[] | undefined;
}