({ token }: TokenInputProps)
| 6 | } |
| 7 | |
| 8 | function TokenInput({ token }: TokenInputProps): ReactElement { |
| 9 | return ( |
| 10 | <input |
| 11 | type="text" |
| 12 | value={token ?? ''} |
| 13 | hidden |
| 14 | id="csrf_token" |
| 15 | name="csrf_token" |
| 16 | data-testid="csrf_token" |
| 17 | readOnly |
| 18 | /> |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | export default TokenInput; |
nothing calls this directly
no outgoing calls
no test coverage detected