mirror of
https://github.com/docmost/docmost.git
synced 2026-07-27 02:24:47 +10:00
572452c80b
Add the bases feature: formula engine package, grid/table UI, and the base-embed editor extension, with supporting client and server changes.
19 lines
448 B
TypeScript
19 lines
448 B
TypeScript
import { ThemeIcon } from "@mantine/core";
|
|
import { IconFileDescription, IconTable } from "@tabler/icons-react";
|
|
|
|
type Props = {
|
|
icon?: string | null;
|
|
isBase?: boolean;
|
|
};
|
|
|
|
export function PageListIcon({ icon, isBase }: Props) {
|
|
if (icon) {
|
|
return <>{icon}</>;
|
|
}
|
|
return (
|
|
<ThemeIcon variant="transparent" color="gray" size={18}>
|
|
{isBase ? <IconTable size={18} /> : <IconFileDescription size={18} />}
|
|
</ThemeIcon>
|
|
);
|
|
}
|