Q58Connect/src/components/ui/container.tsx
wood chen 760bbdbafd feat: Enhance homepage and OAuth authorization with improved design and functionality
- 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
2025-02-20 03:44:05 +08:00

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}
/>
);
}