mirror of
https://github.com/docmost/docmost.git
synced 2025-11-12 21:42:35 +10:00
20 lines
485 B
TypeScript
20 lines
485 B
TypeScript
import { Table, Text } from "@mantine/core";
|
|
import React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
interface NoTableResultsProps {
|
|
colSpan: number;
|
|
}
|
|
export default function NoTableResults({ colSpan }: NoTableResultsProps) {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<Table.Tr>
|
|
<Table.Td colSpan={colSpan}>
|
|
<Text fw={500} c="dimmed" ta="center">
|
|
{t("No results found...")}
|
|
</Text>
|
|
</Table.Td>
|
|
</Table.Tr>
|
|
);
|
|
}
|