score:0

link component expects a prop called clicked, not onclick - rename it.

<link icon={dashboardicon} clicked={() => setpage('library')}>
    library
</link>

secondly, i believe it's a void function, which does not return anything (setpage looks like a hook).

clicked?: () => void;

anyways if setpage does return something, change the void to the stuff that it returns.


Related Query

More Query from same tag