Overhaul PodMan UI with shadcn
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
'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 };
|
||||
Reference in New Issue
Block a user