2017-09-10 05:35:10 -08:00
|
|
|
import React from 'react';
|
2023-06-26 01:29:50 -08:00
|
|
|
import type {StyleSheetProps} from '../hyper';
|
2017-06-11 02:42:39 -08:00
|
|
|
|
2023-07-15 20:20:55 -08:00
|
|
|
const StyleSheet: React.FC<StyleSheetProps> = (props) => {
|
|
|
|
|
const {borderColor} = props;
|
2017-06-11 02:42:39 -08:00
|
|
|
|
2023-07-15 20:20:55 -08:00
|
|
|
return (
|
|
|
|
|
<style jsx global>{`
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
width: 5px;
|
|
|
|
|
}
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
|
-webkit-border-radius: 10px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
background: ${borderColor};
|
|
|
|
|
}
|
|
|
|
|
::-webkit-scrollbar-thumb:window-inactive {
|
|
|
|
|
background: ${borderColor};
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default StyleSheet;
|