UNPKG

roko-date-picker

Version:
25 lines (24 loc) 967 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_native_1 = require("react-native"); const react_1 = __importDefault(require("react")); const hooks_1 = require("../../features/hooks"); const SquareCellIndicator = ({ visible }) => { // #region custom hooks const { theme } = (0, hooks_1.useMain)(); // #endregion // #region variables const customStyles = (0, hooks_1.useStyles)(styles, theme); if (!visible) return null; // #endregion return <react_native_1.View style={customStyles.root}/>; }; exports.default = SquareCellIndicator; SquareCellIndicator.displayName = "SquareCellIndicator"; const styles = (theme) => react_native_1.StyleSheet.create({ root: { height: 6, width: 24, borderRadius: 5, backgroundColor: theme?.colors.primary }, });