UNPKG

@t1mmen/srtd

Version:

Supabase Repeatable Template Definitions (srtd): 🪄 Live-reloading SQL templates for Supabase DX. Make your database changes reviewable and migrations maintainable! 🚀

21 lines • 1.1 kB
// src/commands/_app.tsx import { Alert, ThemeProvider } from '@inkjs/ui'; import { Box, Static, Text } from 'ink'; import React from 'react'; import Debug from '../components/Debug.js'; import { COLOR_ERROR, customTheme } from '../components/customTheme.js'; import { useDatabaseConnection } from '../hooks/useDatabaseConnection.js'; export default function App({ Component, commandProps }) { const { error } = useDatabaseConnection(); return (React.createElement(ThemeProvider, { theme: customTheme }, React.createElement(Box, { flexDirection: "column", padding: 1 }, !!error && (React.createElement(Static, { items: [error] }, error => (React.createElement(Box, { key: error }, React.createElement(Alert, { variant: "error" }, React.createElement(Text, { bold: true, color: COLOR_ERROR }, "Error:", ' '), error))))), React.createElement(Component, { ...commandProps }), React.createElement(Debug, null)))); } //# sourceMappingURL=_app.js.map