Headup - Recording Data Layer for Next
Usage
import { createHeadupDataLayer } from "headup";
const {
createContentHook,
createSectionHook,
HeadupProvider,
} = createHeadupDataLayer<{ language: string; path: string }>({
mode: "record",
async recordContent(content) {
// Save content
},
async playbackContent(meta) {
// Read the data and return it
return {};
},
});
More docs coming!