mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 14:01:55 +08:00
- Redesign homepage with modern layout, feature cards, and interactive tabs - Add Radix UI Tabs component for code example section - Improve OAuth authorization page with more robust parameter validation - Refactor Authorizing component with better loading state and error handling - Optimize authorization code generation and expiration logic - Update authorization flow to support standard OAuth 2.0 parameters
21 lines
432 B
TypeScript
21 lines
432 B
TypeScript
import { HTMLAttributes } from "react";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
type ContainerProps = HTMLAttributes<HTMLElement> & {
|
|
as?: "div" | "section" | "article" | "main" | "header" | "footer";
|
|
};
|
|
|
|
export function Container({
|
|
className,
|
|
as: Component = "div",
|
|
...props
|
|
}: ContainerProps) {
|
|
return (
|
|
<Component
|
|
className={cn("mx-auto max-w-7xl px-4 sm:px-6 lg:px-8", className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|