UNPKG

salat

Version:

Daily Moroccan prayers time, right in your console, at the tip of your fingers

15 lines (14 loc) 717 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { useHijriDate } from "#hooks/useHijriDate"; import { Box, Text } from "ink"; const HijriApp = () => { const { hijriDate, error, loading } = useHijriDate(); if (loading) { return _jsx(Text, { children: "Loading hijri date..." }); } if (error) { return _jsxs(Text, { color: "red", children: ["Error: ", error] }); } return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "blue", children: "\uD83D\uDD4C Hijri Date" }) }), _jsx(Box, { padding: 1, children: _jsx(Text, { children: `${hijriDate}` }) })] })); }; export default HijriApp;