import { useKosModel } from "@kosdev-code/kos-ui-sdk";
import { <%= nameProperCase %>, <%= nameProperCase %>Model } from "<%= importPath %>";

export const use<%= nameProperCase %> = (<% if (!singleton) { %>id: string<% } %>) => {
  const modelId = <% if (singleton) { %><%= nameProperCase %>.type<% } else {%>id<% } %>;
  const result = useKosModel<<%= nameProperCase %>Model>({
    modelId,
    modelType: <%= nameProperCase %>.type,
    options: {},
  });

  return result;
};
