export type ResourceProps = { key?: string; get: () => T; };