- Added package.json with dependencies and scripts for development, build, and linting. - Created postcss.config.mjs for Tailwind CSS integration. - Added SVG assets for UI components including file, globe, next, vercel, and window icons. - Configured TypeScript with tsconfig.json for strict type checking and module resolution.
23 lines
506 B
TypeScript
23 lines
506 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import { Direction } from "radix-ui"
|
|
|
|
function DirectionProvider({
|
|
dir,
|
|
direction,
|
|
children,
|
|
}: React.ComponentProps<typeof Direction.DirectionProvider> & {
|
|
direction?: React.ComponentProps<typeof Direction.DirectionProvider>["dir"]
|
|
}) {
|
|
return (
|
|
<Direction.DirectionProvider dir={direction ?? dir}>
|
|
{children}
|
|
</Direction.DirectionProvider>
|
|
)
|
|
}
|
|
|
|
const useDirection = Direction.useDirection
|
|
|
|
export { DirectionProvider, useDirection }
|