Core tests / core (push) Successful in 9m57s
Full verification / application (push) Failing after 5m16s
Full verification / local-brain (push) Failing after 6m15s
Realm simulation / simulated-live-world (push) Failing after 5m32s
WoW integration lab / real-worldserver (push) Canceled after 17m23s
Source branch: feature/ai-brain-router Source commit: c2a09e0460465201a58aaab56c71424e9a96405e
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 }
|