Skip to content

Commit

Permalink
chore: add jsdoc annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jimniels committed Oct 15, 2023
1 parent 2f2b56c commit eaf4e93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/components/Error.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ const { useEffect } = React;

const TIMER = 5; // in seconds

/**
* @param {{
* error: string,
* setError: (error: string) => void
* }} props
*/
export default function Error({ error, setError }) {
const classes = ["error", error ? "error--visible" : ""].join(" ");

Expand Down

0 comments on commit eaf4e93

Please # to comment.