mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 14:43:06 +08:00
3164b6981c
* feat: api keys (EE) * improvements * fix table * fix route * remove token suffix * api settings * Fix * fix * fix * fix
21 lines
516 B
TypeScript
21 lines
516 B
TypeScript
import { Table, Text } from "@mantine/core";
|
|
import React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
interface NoTableResultsProps {
|
|
colSpan: number;
|
|
text?: string;
|
|
}
|
|
export default function NoTableResults({ colSpan, text }: NoTableResultsProps) {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<Table.Tr>
|
|
<Table.Td colSpan={colSpan}>
|
|
<Text fw={500} c="dimmed" ta="center">
|
|
{text || t("No results found...")}
|
|
</Text>
|
|
</Table.Td>
|
|
</Table.Tr>
|
|
);
|
|
}
|