{
  "$schema": "https://shadcn-vue.com/schema/registry-item.json",
  "name": "privacy-policy",
  "type": "registry:block",
  "title": "Privacy policy",
  "description": "The app's privacy policy, from the instance's legal facts and what the app stores.",
  "author": "spotstrap (https://kodentuzo.com/spotstrap)",
  "dependencies": [
    "@kodentuzo/spotstrap@^0.3.1",
    "@kodentuzo/spotkit@^0.3.0"
  ],
  "registryDependencies": [
    "https://kodentuzo.com/spotstrap/r/vue/legal-document.json"
  ],
  "files": [
    {
      "path": "components/PrivacyPolicy.vue",
      "type": "registry:component",
      "content": "<script setup lang=\"ts\">\n// The app's privacy policy, from the instance's legal facts (`legalFacts()` from\n// @kodentuzo/spotkit on the server, or `legal()` from @kodentuzo/spotkit/client) and what the app\n// stores itself.\nimport type { LegalFacts } from '@kodentuzo/spotkit'\nimport { type AppData, type Messages, privacyPolicy } from '@kodentuzo/spotstrap/blocks'\nimport { computed } from 'vue'\nimport LegalDocument from '@/components/LegalDocument.vue'\n\nconst props = defineProps<{\n  facts: LegalFacts\n  appName: string\n  /** What the app stores beyond the platform's processing, in its own words. */\n  appData?: AppData[]\n  messages?: Messages\n}>()\n\nconst doc = computed(() =>\n  privacyPolicy(props.facts, {\n    appName: props.appName,\n    appData: props.appData,\n    messages: props.messages,\n  }),\n)\n</script>\n\n<template>\n  <LegalDocument :doc=\"doc\" />\n</template>\n"
    }
  ]
}
