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 need to
{' '}
set up storage
{' '}
before you can publish
{storageError()}