react-notion-x
react-notion-x copied to clipboard
Filter/Sort component question
trafficstars
Sorry, I am new to react-notion-x. Neither the sample page nor (https://transitivebullsh.it/) seem to have a filter/sort component on top of the database view for the visitor to filter or sort the data (not sure if I'm overlooking it). If react-notion-x doesn't provide this component by default, and if I want to do it myself, should I:
- create a new file in the component folder (e.g. NotionCollectionControls.tsx) to handle the filtering/sorting logic
- in component/NotionPage.tsx, add this NotionCollectionControls component on top of the NotionRenderer, and pass filter and sort props to NotionRenderer?