mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 02:33:02 +00:00
13 lines
398 B
TypeScript
13 lines
398 B
TypeScript
import * as React from 'react';
|
|
|
|
type Direction = 'ltr' | 'rtl';
|
|
interface DirectionProviderProps {
|
|
children?: React.ReactNode;
|
|
dir: Direction;
|
|
}
|
|
declare const DirectionProvider: React.FC<DirectionProviderProps>;
|
|
declare function useDirection(localDir?: Direction): Direction;
|
|
declare const Provider: React.FC<DirectionProviderProps>;
|
|
|
|
export { DirectionProvider, Provider, useDirection };
|