CommonLogo.story.vue 580 B

123456789101112131415161718192021222324
  1. <!-- Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { useApplicationStore } from '@shared/stores/application'
  4. import { h } from 'vue'
  5. import CommonLogo from './CommonLogo.vue'
  6. const CustomLogo = () => {
  7. const application = useApplicationStore()
  8. application.config.product_logo = 'icons/logotype.svg'
  9. return h(CommonLogo)
  10. }
  11. </script>
  12. <template>
  13. <Story>
  14. <Variant title="Default">
  15. <CommonLogo />
  16. </Variant>
  17. <Variant title="Custom">
  18. <CustomLogo />
  19. </Variant>
  20. </Story>
  21. </template>