mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
14 lines
339 B
TypeScript
14 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;
|