1
0
Fork 0

[react] feat: Added docs for components/Stats

This commit is contained in:
joostdecock 2025-05-29 12:21:39 +02:00
parent 4ba8b50b2c
commit b6d947646c
3 changed files with 30 additions and 3 deletions

View file

@ -45,6 +45,14 @@ const option = {
},
}
/**
* A component to display generic stats from the FreeSewing backend
*
* @component
* @param {object} props - All component props
* @param {React.FC} [props.Link = false] - An optional framework-specific Link component
* @returns {JSX.Element}
*/
export const Stats = ({ Link = false }) => {
if (!Link) Link = WebLink
const [stats, setStats] = useState()