첫 커밋
This commit is contained in:
15
src/widgets/ios-status-bar/index.tsx
Normal file
15
src/widgets/ios-status-bar/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Fragment } from 'react/jsx-runtime';
|
||||
import { useAppColor } from '@/shared/lib/hooks/use-change-bg-color';
|
||||
|
||||
export const IOSStatusBar = () => {
|
||||
const [appColor] = useAppColor();
|
||||
const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
||||
|
||||
if(!isIOS){
|
||||
return <Fragment></Fragment>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="ios-status-bar" style={{ backgroundColor: appColor }}></div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user