initial commit
This commit is contained in:
commit
4a80c8552b
46 changed files with 8309 additions and 0 deletions
11
src/platform/anim.ts
Normal file
11
src/platform/anim.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { createContext, useContext, type Accessor } from "solid-js";
|
||||
|
||||
export type HeroSource = {[key: string | symbol | number]: HTMLElement | undefined}
|
||||
|
||||
const HeroSourceContext = createContext<Accessor<HeroSource>>(() => ({}))
|
||||
|
||||
export const HeroSourceProvider = HeroSourceContext.Provider
|
||||
|
||||
export function useHeroSource() {
|
||||
return useContext(HeroSourceContext)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue