forked from pu428f3pz/InternshipProject
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
486 B
14 lines
486 B
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
import * as React from 'react';
|
|
import { detectFlexGapSupported } from '../styleChecker';
|
|
export default (function () {
|
|
var _React$useState = React.useState(false),
|
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
flexible = _React$useState2[0],
|
|
setFlexible = _React$useState2[1];
|
|
|
|
React.useEffect(function () {
|
|
setFlexible(detectFlexGapSupported());
|
|
}, []);
|
|
return flexible;
|
|
}); |