mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
24 lines
426 B
TypeScript
24 lines
426 B
TypeScript
|
// next
|
||
|
import Link from "next/link";
|
||
|
// hooks
|
||
|
import useUser from "lib/hooks/useUser";
|
||
|
// types
|
||
|
import { ICycle } from "types";
|
||
|
import SingleStat from "./single-stat";
|
||
|
|
||
|
type Props = {
|
||
|
cycles: ICycle[];
|
||
|
};
|
||
|
|
||
|
const CycleStatsView: React.FC<Props> = ({ cycles }) => {
|
||
|
return (
|
||
|
<>
|
||
|
{cycles.map((cycle) => (
|
||
|
<SingleStat key={cycle.id} cycle={cycle} />
|
||
|
))}
|
||
|
</>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default CycleStatsView;
|