'Eslint accusing unused property error with useCallback

I'm destructuring a larger object received by parameter in a Hook called useCallback from Reactjs, however, ESLINT gives me the following message:

'to' PropType is defined but prop is never usedeslintreact/no-unused-prop-types
'icon' PropType is defined but prop is never usedeslintreact/no-unused-prop-types
'title' PropType is defined but prop is never usedeslintreact/no-unused-prop-types

Why exactly am I getting this message when they are being used? Should I fix some rule in eslint? Is this really wrong?

const ComponentNavLinkItem = useCallback(
    ({ to, icon, title }: { to: string; icon: string; title: string }) => (
        <NavLinkItem to={to} exact>
            <Icon icon={icon} />
            <Title>{title}</Title>
        </NavLinkItem>
    ),
    []
);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source