mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 05:05:38 -04:00
- Delete lib/api/errors.ts and lib/api/auth-guard.ts, inline NextResponse.json() error responses directly in route handlers - Replace non-standard amber CSS variables with primary/primary-foreground - Regenerate shadcn UI components with biome-ignore comments - Add CLAUDE.md for repository guidance - Update dependencies and pnpm lockfile Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
406 B
TypeScript
23 lines
406 B
TypeScript
import { cn } from "@/lib/utils";
|
|
|
|
function AspectRatio({
|
|
ratio,
|
|
className,
|
|
...props
|
|
}: React.ComponentProps<"div"> & { ratio: number }) {
|
|
return (
|
|
<div
|
|
data-slot="aspect-ratio"
|
|
style={
|
|
{
|
|
"--ratio": ratio,
|
|
} as React.CSSProperties
|
|
}
|
|
className={cn("relative aspect-(--ratio)", className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { AspectRatio };
|