mirror of
https://github.com/fleetdm/fleet
synced 2026-04-30 18:07:56 +00:00
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
|
|
import React from "react";
|
||
|
|
|
||
|
|
import { generateResultsCountText } from "../utilities/TableContainerUtils";
|
||
|
|
|
||
|
|
interface ITableCountProps {
|
||
|
|
name: string;
|
||
|
|
count?: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
const TableCount = ({ name, count }: ITableCountProps): JSX.Element => {
|
||
|
|
return <span>{generateResultsCountText(name, count)}</span>;
|
||
|
|
};
|
||
|
|
|
||
|
|
export default TableCount;
|