UserToolbar.vue 820 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <Toolbar :pt="{ root: 'min-h-11.5 rounded-b-none' }">
  3. <template #start>
  4. <div class="ps-6 text-sm whitespace-nowrap text-primary">
  5. Showing
  6. <strong class="font-semibold">{{ count }}</strong>
  7. {{ pluralize("user", count) }}
  8. </div>
  9. </template>
  10. <template #end>
  11. <Button
  12. class="border-none px-6! py-3.25"
  13. variant="text"
  14. >
  15. <NuxtLink
  16. class="flex items-center gap-0.5"
  17. :to="{ name: 'admin:userCreate' }"
  18. >
  19. <span class="font-semibold">Add</span>
  20. <Icon name="ph:plus-bold" />
  21. </NuxtLink>
  22. </Button>
  23. </template>
  24. </Toolbar>
  25. </template>
  26. <script setup>
  27. const props = defineProps({
  28. count: {
  29. type: Number,
  30. required: true
  31. }
  32. })
  33. </script>
  34. <style scoped></style>