@headup/headup

0.0.2 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i @headup/headup

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

21.5 kB

Total Files

8

Last publish

Collaborators

  • valudigital
  • esamatti