import { JSX, ParentComponent, Show, Suspense } from "solid-js"
import Linkify from "./Linkify"
import { Button, ButtonLink } from "./Button"
import { Separator } from "@kobalte/core"
import { useMegaStore } from "~/state/megaStore"
const SmallHeader: ParentComponent<{ class?: string }> = (props) => {
return
}
const Card: ParentComponent<{ title?: string }> = (props) => {
return (
{props.title && {props.title}}
{props.children}
)
}
const InnerCard: ParentComponent<{ title?: string }> = (props) => {
return (
{props.title && {props.title}}
{props.children}
)
}
const FancyCard: ParentComponent<{ title?: string, tag?: JSX.Element }> = (props) => {
return (
{props.title && {props.title}}
{props.tag && props.tag}
{props.children}
)
}
const SafeArea: ParentComponent = (props) => {
return (
)
}
const DefaultMain: ParentComponent = (props) => {
return (
{props.children}
)
}
function FullscreenLoader() {
return (
);
}
const NodeManagerGuard: ParentComponent = (props) => {
const [state, _] = useMegaStore();
return (
}>
{props.children}
)
}
const LoadingSpinner = (props: { big?: boolean }) => {
return ();
}
const Hr = () =>
const LargeHeader: ParentComponent = (props) => {
return ({props.children}
)
}
const VStack: ParentComponent<{ biggap?: boolean }> = (props) => {
return ({props.children}
)
}
const HStack: ParentComponent<{ biggap?: boolean }> = (props) => {
return ({props.children}
)
}
const SmallAmount: ParentComponent<{ amount: number | bigint }> = (props) => {
return ({props.amount.toLocaleString()} SATS
)
}
export {
SmallHeader,
Card,
SafeArea,
LoadingSpinner,
Button,
ButtonLink,
Linkify,
Hr,
NodeManagerGuard,
FullscreenLoader,
InnerCard,
FancyCard,
DefaultMain,
LargeHeader,
VStack,
HStack,
SmallAmount
}