UNPKG

@madeja-studio/telar

Version:

UI component library by Madeja Studio

25 lines (24 loc) 652 B
"use strict"; import tw from "../../tailwind/index.js"; import { useTheme } from "../../theme/ThemeContextProvider.js"; import { AnimatedPressable } from "../Button/AnimatedPressable.js"; import { VectorIcon } from "../Icon/index.js"; import { jsx as _jsx } from "react/jsx-runtime"; export const HeaderButton = ({ icon, onPress }) => { const { theme } = useTheme(); return /*#__PURE__*/_jsx(AnimatedPressable, { onPress: onPress, style: [tw`p-6`], children: /*#__PURE__*/_jsx(VectorIcon, { color: theme.navigationBar.color.text, icon: icon, size: 24 }) }); }; //# sourceMappingURL=HeaderButton.js.map