mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 00:32:56 +03:00
9 lines
250 B
TypeScript
9 lines
250 B
TypeScript
import * as data from "@constants/data";
|
|
import { useSessionStorage } from "@hooks/useSessionStorage";
|
|
|
|
export type Language = string;
|
|
|
|
export function useData(type?: Language) {
|
|
return type ? useSessionStorage(`data:${type}`, data[type]) : [,];
|
|
}
|