import { iDown, iSearch } from '@/comps/ui/icons';
import { Card, Loading } from '@/comps/ui/card';
import { Icon } from '@/comps/ui/icon';
import { Toolbar } from '@/comps/ui/toolbar';
export const BLANK = ' ';
/** `Loading` inside the box its data fills, titled as that box. */
export function LoadingCard({ title, label, h }: { title?: string; label: string; h?: number }) {
return (
);
}
/** A list's toolbar while the list loads: the same title and controls, inert until the list is live. */
export function LoadingToolbar({
head,
search,
selects = [],
more,
action,
}: {
head?: { title: string; lead?: string };
search: string;
selects?: string[];
/** A disabled more-filters button after the selects. */
more?: boolean;
/** The primary button's label. */
action?: string;
}) {
return (
{action}
) : undefined
}
>
{selects.map(label => (
))}
{more ? (
) : null}
);
}