import type { Component } from 'solid-js' import { A } from '@solidjs/router' import { Show } from 'solid-js' import { storageError } from '../../appInit' import { Iconify } from '../../components/mini-components' import { useAgent } from './AgentState' export function getSubOrShare(id) { return useAgent().subscriptions.find(s => s.id === id) ?? useAgent().shares.find(s => s.id === id) } export const DefaultAgentBanner: Component<{}> = () => { const agent = useAgent() return (
You are playing around with generic user info, click here to configure your username
) } export const StorageMissingBanner: Component<{}> = () => { const agent = useAgent() return (
No storage set up

You need to {' '} set up storage {' '} before you can publish

) } export const StorageErrorBanner: Component<{}> = () => { return (
Storage Error

{storageError()}

) }