<template>
  <SimpleStdMessages :code="code">
    <MsgCase when="two">
      custom two
    </MsgCase>
    <MsgCase when="dyn">
      dynamic message
    </MsgCase>
    <MsgCase when="*">
      <template slot-scope="{ value }">
        custom wildcard [{{ value }}]
      </template>
    </MsgCase>
  </SimpleStdMessages>
</template>

<script>
import SimpleStdMessages from './SimpleStdMessages';
import { MsgCase } from '../../../src';

export default {
  components: {
    SimpleStdMessages,
    MsgCase,
  },
  props: {
    code: { type: String, default: '' },
  },
};
</script>
