UNPKG
@twilio-paste/paste-reakit-fork
Version:
latest (1.4.1)
1.4.1
Forked Reakit that addresses SSR hydration issues
twilio-labs/paste-reakit
@twilio-paste/paste-reakit-fork
/
src
/
Composite
/
__utils
/
getOppositeOrientation.ts
11 lines
(8 loc)
•
231 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
Orientation
}
from
"./types"
;
const
map = {
horizontal
:
"vertical"
,
vertical
:
"horizontal"
, }
as
const
;
export
function
getOppositeOrientation
(
orientation?: Orientation
) {
return
orientation && map[orientation]; }